/* ============================================= */
/* ESTILOS GENERALES Y VARIABLES */
/* ============================================= */
:root {
    --color-principal: #215d65;
    --color-principal-dark: #1a4a52;
    --color-secundario: #073439;
    --color-acento: #d4af37;
    --color-acento-light: #e8c96a;
    --color-fondo: #f5f5f5;
    --color-texto: #333333;
    --color-texto-light: #666666;
    --color-blanco: #ffffff;
    --color-gris: #e0e0e0;
    --color-gris-dark: #cccccc;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    
    --font-primary: 'Poppins', sans-serif;
    
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
    overflow-x: hidden;
}

h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-secundario);
}

p {
    margin-bottom: 1.25rem;
}

a {
    text-decoration: none;
    color: var(--color-principal);
    transition: var(--transition);
}

a:hover {
    color: var(--color-acento);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-texto-light);
    margin-top: 1rem;
}

.bg-light {
    background-color: var(--color-blanco);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-principal);
    color: var(--color-blanco);
}

.btn-primary:hover {
    background-color: var(--color-principal-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    color: var(--color-blanco);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-principal);
    border: 2px solid var(--color-principal);
}

.btn-secondary:hover {
    background-color: var(--color-principal);
    color: var(--color-blanco);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.text-center {
    text-align: center;
}

.highlight-text {
    font-weight: 600;
    color: var(--color-principal);
    font-size: 1.1rem;
}

/* ============================================= */
/* PRELOADER */
/* ============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-blanco);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader .loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-gris);
    border-top-color: var(--color-principal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preloader.fade-out {
    opacity: 0;
}

/* ============================================= */
/* HEADER Y NAVEGACIÓN */
/* ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 25px 0 12px 0; /* Más padding arriba (25px) que abajo (15px) */
    transition: none;
}

.header.scrolled {
    background-color: rgba(33, 93, 101, 0.95);
    box-shadow: none; /* sin sombra */
    padding: 20px 0; /* igual que el header normal */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 2rem;
    position: relative;
}

.nav-list a {
    color: var(--color-blanco);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-list a:hover {
    color: var(--color-acento);
}

.nav-list a i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-blanco);
    width: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    padding: 1rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 120%;
}

.dropdown-menu li {
    margin: 0;
    padding: 0.5rem 1.5rem;
}

.dropdown-menu a {
    color: var(--color-texto);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    color: var(--color-principal);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-blanco);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === Responsivo: HEADER === */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--color-principal);
        transition: var(--transition);
        padding: 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-list li {
        margin: 0 0 1.5rem 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: transparent;
        width: 100%;
        padding: 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu li {
        padding: 0.3rem 0 0.3rem 1rem;
    }
    
    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .hamburger {
        display: flex;
    }
    
    .header.scrolled .nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 40px;
    }
    
    .header.scrolled .logo img {
        height: 35px;
    }
}

/* ============================================= */
/* HERO SECTION */
/* ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 70, 80, 0.85) !important; /* Oscuro */
    z-index: 1;
    transition: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: none;
    animation: fadeInDown 1s ease;
    font-weight: 600;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: none;
    animation: fadeIn 1.5s ease;
    opacity: 0.9;
    max-width: 100%;
    color: white;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease;
}

/* Nuevos estilos para botones */
.hero-buttons .btn {
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn-primary {
    background-color: #d7ccc8; /* Café claro */
    color: #5d4037; /* Texto café oscuro */
}

.hero-buttons .btn-primary:hover {
    background-color: #bcaaa4; /* Café un poco más oscuro */
}

.hero-buttons .btn-secondary {
    background-color: #d7ccc8; /* Gris claro */
    color: #5d4037; /* Texto gris oscuro */
}

.hero-buttons .btn-secondary:hover {
    background-color: #bcaaa4; /* Gris medio */
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
    cursor: pointer;
}

/* === Responsivo: HERO === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
}

/* ============================================= */
/* ESTILOS AJUSTADOS PARA QUIÉNES SOMOS */
/* ============================================= */

.bg-light-cafe {
    background-color: #d9d2d0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 0rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.divider-large {
    height: 3px;
    width: 100px;
    background-color: var(--color-principal); /* Verde principal */
    margin: 0rem auto; /* Espaciado reducido */
    border: none; /* Elimina bordes por defecto */
}

.about-media {
    flex: 0 0 33%;
    position: relative;
}

.about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Badge de experiencia - Posición ajustable */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: #215d65;
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.experience-badge .years {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    flex: 1;
}

.text-block {
    margin-bottom: 2rem;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Tarjeta destacada */
.highlight-card {
    background-color: #215d65;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.highlight-icon i {
    font-size: 2rem;
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-content p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.highlight-content strong {
    color: #d4af37;
    font-weight: 600;
}

/* Estadísticas centradas abajo */
.stats-container {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    background-color: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #215d65;
    background: rgba(33, 93, 101, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #215d65;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-container {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: 550px;
        margin: 0 auto 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .highlight-card {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .divider-large {
        width: 80px;
        margin: 1rem auto;
    }
    
    .experience-badge {
        right: 10px;
        bottom: -15px;
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
    }
}

/* ============================================= */
/* SECCIÓN: MISIÓN Y VISIÓN */
/* ============================================= */
/* Contenedor principal */
.bg-light-cafe {
    background-color: #f8f5f2; /* Café claro */
}

/* Estructura de columnas */
.dual-column {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.column {
    flex: 1;
    max-width: 500px;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: none; /* Elimina bordes amarillos */
    align-items: center; /* Centrado horizontal */
    text-align: center; /* Centrado de texto */
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #215d65; /* Verde en estado normal */
    transition: all 0.4s ease;
}

.card h3 {
    color: #215d65; /* Verde */
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card p {
    color: #555;
    line-height: 1.7;
}

/* Efecto Hover */
.card:hover {
    background: #215d65; /* Verde */
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(33, 93, 101, 0.2);
}

.card:hover .card-icon,
.card:hover h3,
.card:hover p {
    color: white !important; /* Todo blanco en hover */
}

/* Iconos elegantes (usando Font Awesome) */
.fa-bullseye:before { content: "\f140"; } /* Icono de objetivo premium */
.fa-eye:before { content: "\f06e"; } /* Icono de ojo estilizado */

/* Responsive */
@media (max-width: 768px) {
    .dual-column {
        flex-direction: column;
    }
    .column {
        max-width: 100%;
    }
}

/* ====================== */
/* ESTILOS SERVICIOS */
/* ====================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 93, 101, 0.1);
    min-height: 380px; /* Altura uniforme */
}

.service-icon {
    font-size: 2.8rem;
    color: #215d65;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    color: #215d65;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    text-align: center;
}

.service-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-card ul li {
    position: relative;
    margin-bottom: 0.8rem;
    color: #555;
    list-style-type: none;
}

.service-card ul li::before {
    content: "•";
    color: #d4af37;
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
}

.hover-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #666666;
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    transition: all 0.4s ease;
    opacity: 0;
    text-align: center;
    color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(33, 93, 101, 0.15);
}

.service-card:hover .hover-content {
    bottom: 0;
    opacity: 1;
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover ul li {
    color: white !important;
}

.service-card:hover ul li::before {
    color: white;
}

.btn-service {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 30px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
}

.btn-service:hover {
    background: white;
    color: #215d65;
}

/* Divider */
.divider-large {
    height: 4px;
    width: 100px;
    background: #215d65;
    margin: 1.2rem auto;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: auto;
    }
}

/* ============================================= */
/* SECCIÓN: QUÉ NOS HACE DIFERENTES - AJUSTADO */
/* ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--color-secundario);
}

.divider-large {
    display: block;
    height: 3px;
    width: 100px;
    background-color: var(--color-principal);
    margin: 0.5rem auto 1rem auto;
    border: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-texto-light);
    margin-top: 1rem;
}

/* === GRID DE CARACTERÍSTICAS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* === CADA CAJA === */
.feature-item {
    background-color: var(--color-principal); /* fondo verde institucional */
    color: var(--color-blanco);
    border-radius: var(--border-radius);
    padding: 3rem 2rem 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: scale(1);
}

.feature-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* === NÚMERO GRANDE TRANSLÚCIDO === */
.feature-number {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* === TÍTULO DE LA CAJA === */
.feature-item h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-blanco);
    font-size: 1.3rem;
    font-weight: 600;
}

/* === TEXTO DE LA CAJA === */
.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ====================== */
/* ESTILOS MEJORADOS INNOVACION */
/* ====================== */

.bg-innovacion {
    background: linear-gradient(to bottom, #f8f5f2 0%, #e8e1d9 100%);
    position: relative;
    overflow: hidden;
}

/* Grid de servicios */
.innovation-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-header {
    padding: 2rem 2rem 1rem;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #215d65;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    color: white;
    font-size: 1.8rem;
}

.service-card h3 {
    color: #215d65;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-body {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.service-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-body li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.service-body li i {
    color: #666666;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.service-stats {
    display: flex;
    justify-content: center;
    margin-top: auto; /* Alinea al fondo */
}

.stat {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(33,93,101,0.05);
    width: 100%;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #215d65;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.service-hover {
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    background: #666666;
    padding: 2rem;
    color: white;
    transition: all 0.4s ease;
    border-radius: 0 0 16px 16px;
    z-index: 2;
    min-height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-hover p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.btn-hover {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

/* Efectos hover */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(33,93,101,0.15);
}

.service-card:hover .service-hover {
    bottom: 0;
}

.service-card:hover .service-body li i {
    opacity: 0;
    visibility: hidden;
}

.btn-hover:hover {
    background: white;
    color: #215d65;
}

.service-card:hover .service-icon {
    background-color: #666666; /* café claro */
}

.service-card:hover .service-icon i {
    color: white; /* el ícono NO cambia a gris, permanece blanco */
}

/* Sección de impacto */
.innovation-impact {
    background: #215d65;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.innovation-impact::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.impact-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.impact-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #d4af37; /* Color dorado como los números */
}

.impact-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.impact-stat {
    text-align: center;
}

.impact-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
}

.impact-label {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1200px) {
    .innovation-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .innovation-services-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ========================== */
/* ESTILOS FILOSOFÍA EMPRESARIAL */
/* ========================== */

/* Contenedor principal */
.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas individuales */
.philosophy-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Iconos */
.philosophy-icon {
    width: 80px;
    height: 80px;
    background: rgba(33, 93, 101, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.philosophy-icon i {
    font-size: 2rem;
    color: #215d65; /* Verde principal */
}

/* Títulos */
.philosophy-card h3 {
    color: #215d65; /* Verde fuerte como en secciones anteriores */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Texto */
.philosophy-card p {
    color: #666;
    line-height: 1.6;
}

/* Efecto hover */
.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(33,93,101,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .philosophy-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .philosophy-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================== */
/* ESTILOS COMPACTOS QUÉ OFRECEMOS */
/* ========================== */

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.offering-card.compact {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.offering-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.offering-icon {
    width: 50px;
    height: 50px;
    background: #215d65;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.offering-card.compact h3 {
    color: #215d65;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.offering-card.compact p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.offering-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offering-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding-left: 1.8rem;
    position: relative;
    color: #444;
}

.offering-features i {
    color: #666666;
    position: absolute;
    left: 0;
    top: 0.2rem;
    font-size: 0.9rem;
}

/* Efectos hover */
.offering-card.compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33,93,101,0.12);
}

.offering-card.compact:hover .offering-icon {
    background: #666666;
    transform: rotate(15deg);
}

/* Responsive */
@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .offering-card.compact {
        padding: 1.25rem;
    }
}

/* ========================== */
/* ESTILOS CALIDAD - MINIMALISTA ELEGANTE */
/* ========================== */

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.quality-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.quality-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5d4037; /* Café oscuro */
    margin-bottom: 1rem;
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    line-height: 1;
}

.quality-title {
    color: #215d65;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.quality-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #5d4037; /* Café oscuro */
}

.quality-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.quality-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature i {
    width: 30px;
    height: 30px;
    background: rgba(93, 64, 55, 0.1); /* Café oscuro claro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666; /* Café oscuro */
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature span {
    color: #666666;
    font-size: 0.9rem;
}

/* Efectos hover */
.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgba(93, 64, 55, 0.2); /* Café oscuro claro */
}

.quality-card:hover .quality-number {
    opacity: 0.1;
    transform: scale(1.2);
}

.quality-card:hover .quality-title::after {
    width: 80px;
    transition: width 0.3s ease;
}

.feature:hover i {
    background: #5d4037; /* Café oscuro */
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quality-card {
        padding: 1.5rem;
    }
}

/* ============================================= */
/* SECCIÓN: CONTACTO */
/* ============================================= */
.contact-section {
    background-color: var(--color-principal);
    color: var(--color-blanco);
}

#contacto .divider-large {
    background-color: #d7ccc8 !important; /* Café medio */
    height: 3px;
}

.contact-section .section-header h2,
.contact-section .section-subtitle {
    color: var(--color-blanco);
}

.contact-section .divider {
    background-color: var(--color-acento);
}

.contact-container {
    display: flex;
    gap: 3rem;
    background-color: var(--color-blanco);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-info {
    flex: 1;
    background-color: var(--color-secundario);
    padding: 3rem;
}

.contact-info h3 {
    color: var(--color-blanco);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-acento);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: #d7ccc8;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-blanco);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-acento);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-gris);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-principal);
    box-shadow: 0 0 0 3px rgba(33, 93, 101, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === Responsivo: CONTACTO === */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
}

/* ============================================= */
/* FOOTER */
/* ============================================= */
.footer {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 130px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--color-blanco);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-acento);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-acento);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--color-acento);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--color-acento);
}

/* === Responsivo: FOOTER === */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================= */
/* ELEMENTOS FLOTANTES */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: var(--color-blanco);
}

.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-principal);
    color: var(--color-blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-secundario);
    transform: translateY(-5px);
}

/* ============================================= */
/* ANIMACIONES */
/* ============================================= */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}


/* ============================================= */
/* ESTILOS PARA MENSAJES DEL FORMULARIO */
/* ============================================= */
.form-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.form-alert.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
}

.form-alert.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

/* Estilos para campos inválidos */
input:invalid, textarea:invalid, select:invalid {
    border-color: var(--color-danger) !important;
}

input:focus:invalid, textarea:focus:invalid, select:focus:invalid {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}