/* ==============================================
   VARIABLES Y RESET
   ============================================== */
:root {
    /* Colores principales */
    --primary: #51dacf;
    --secondary: #ff6d4d;
    --dark: #000000;
    --light: #ffffff;
    --gray: #1a1a1a;
    
    /* Escala de grises */
    --black: #000000;
    --gray-90: #0a0a0a;
    --gray-80: #1a1a1a;
    --gray-70: #2e2e2e;
    --gray-60: #4a4a4a;
    --gray-50: #666666;
    --gray-40: #999999;
    --gray-30: #cccccc;
    --gray-20: #e5e5e5;
    --gray-10: #f5f5f5;
    --white: #ffffff;
    
    /* Tipografía */
    --font-main: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-primary: 0 4px 12px rgba(81, 218, 207, 0.3);
    --shadow-secondary: 0 4px 12px rgba(255, 109, 77, 0.3);
    
    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
}

/* Reset básico */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden;
}

/* ==============================================
   TIPOGRAFÍA
   ============================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    display: inline-block;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-30);
}

.highlight {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

/* ==============================================
   COMPONENTES COMUNES
   ============================================== */
/* Botones */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--black);
    box-shadow: var(--shadow-md);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    /* LÍNEA AÑADIDA: Cambia el color del texto en el hover */
    color: var(--primary); /* Esto usa el color #51DACF */
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-secondary:hover {
    color: var(--black);
}

.cta-secondary:hover::before {
    width: 100%;
}


/* imagenes */
.about-image {
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center;     /* Centra la imagen verticalmente */
}

/* REGLA NUEVA para controlar el tamaño de la imagen dentro del contenedor */
.about-image img {
    max-width: 100%; /* Asegura que la imagen no sea más ancha que su contenedor */
    height: auto;    /* Mantiene la proporción de la imagen al escalar */
    border-radius: var(--radius-md); /* Aplica un borde redondeado, igual que en las tarjetas */
}


/* Tarjetas */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(81, 218, 207, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
    border-color: rgba(81, 218, 207, 0.3);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(81, 218, 207, 0.1);
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(81, 218, 207, 0.1);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-md);
}

.service-link::after {
    content: '→';
    margin-left: var(--space-xs);
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(4px);
}

/* Alertas */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.alert.success {
    background-color: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    color: #28a745;
}

.alert.error {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NUEVO: SEPARADOR DE SECCIÓN DIAGONAL */
.services-section::after,
.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vw; /* La altura será un 10% del ancho de la pantalla */
    max-height: 150px; /* Un límite para que no sea demasiado grande en pantallas enormes */
    background: var(--black); /* El color de fondo de la sección de abajo */

    /* La magia del corte diagonal */
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Le damos un color de fondo a la sección de metodología para que el corte se vea */
.methodology-section {
    background: var(--dark);
}

/* ==============================================
   LAYOUT
   ============================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxl) 0;
    position: relative; /* ¡Añadir esta línea! */
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-subtitle {
    color: var(--gray-40);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* ==============================================
   HEADER Y NAVEGACIÓN
   ============================================== */
.particles-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--gray-90), var(--black));
    overflow: hidden;
}

#particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.navbar {
    padding: 1rem 2rem; /* Un poco menos de padding vertical */
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

    /* --- ESTAS SON LAS LÍNEAS CLAVE PARA EL CENTRADO --- */
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center;     /* Centra el contenido verticalmente */
    gap: 3rem;               /* Crea un espacio entre el logo y el menú */
}

.nav-links li:not(:first-child)::before {
    content: '::';
    color: var(--primary); /* Usa el color principal de tu marca */
    margin-right: 1.5rem;  /* Espacio a la derecha del separador */
    font-weight: 600;
}

.nav-links ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem; /* Espacio entre cada elemento del menú (li) */
}

@media (max-width: 768px) {
    /* --- AÑADE ESTA REGLA DENTRO DEL MEDIA QUERY --- */
    .navbar {
        justify-content: space-between; /* Revierte el centrado en móviles */
    }
    /* --- FIN DE LA REGLA A AÑADIR --- */

    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    /* ... (El resto de tus estilos para móvil permanecen igual) ... */

    /* También ocultamos los separadores en móvil */
    .nav-links li:not(:first-child)::before {
        display: none;
    }
}


.logo-container {
    z-index: 1001;
}

.logo {
    height: 100px;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se asegura de que esté detrás del texto */
}

.hero {
    position: relative; /* Contenedor para el posicionamiento absoluto de las partículas */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-md); /* Solo padding lateral */
    box-sizing: border-box;
}

.hero-content {
    position: relative; /* Necesario para que z-index funcione */
    z-index: 2; /* La capa más alta, siempre visible */
    max-width: 800px;
}

.hero-title {
    margin-bottom: var(--space-md);
    position: relative;
}

.typewriter {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator svg {
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==============================================
   SECCIÓN DE SERVICIOS
   ============================================== */
.services-section {
    padding: 6rem 2rem;
    background-color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(81, 218, 207, 0.2);
    border-left-color: var(--secondary);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(81, 218, 207, 0.1);
    border-radius: 50%;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding-top: 1rem;
}

.service-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-indicator {
        right: 1rem;
        bottom: 1rem;
    }
}

/* ==============================================
   SECCIÓN DE METODOLOGÍA
   ============================================== */
.methodology {
    background-color: var(--black);
}

.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.process-step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    left: -30px;
    width: 30px;
    height: 2px;
    background: var(--primary);
    display: none;
}

.process-step:first-child::before {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
}

/* ==============================================
   TESTIMONIOS
   ============================================== */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.slides {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

blockquote {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
    position: relative;
}

blockquote::before,
blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

blockquote::before {
    top: 0;
    left: 0;
}

blockquote::after {
    bottom: 0;
    right: 0;
}

blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: var(--space-md);
}

blockquote footer {
    font-weight: 700;
    color: var(--primary);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.slider-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(81, 218, 207, 0.1);
}

/* ==============================================
   FORMULARIO DE CONTACTO
   ============================================== */
.contact {
    background-color: var(--gray-80);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xxl);
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid rgba(81, 218, 207, 0.2);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--white);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gray-70);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}
select option {
    background: var(--gray-70); /* Un fondo gris oscuro, como los otros campos */
    color: var(--white);       /* Texto blanco */
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(81, 218, 207, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background-color: var(--gray-90);
    padding: var(--space-xxl) 0 var(--space-md);
    color: var(--gray-40);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
}

.footer-logo svg {
    margin-bottom: var(--space-md);
}

.footer-logo p {
    max-width: 300px;
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-40);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social h3 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.social-icons {
    display: flex;
    gap: var(--space-md);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-icons a:hover svg {
    fill: var(--black);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-70);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.legal-links {
    display: flex;
    gap: var(--space-md);
}

.legal-links a {
    color: var(--gray-40);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary);
}

/* ==============================================
   EFECTOS ESPECIALES
   ============================================== */
/* Efecto de máquina de escribir */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Efecto parallax */
.parallax {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ==============================================
   MEDIA QUERIES
   ============================================== */
@media (max-width: 992px) {
    .process-step::before {
        display: none;
    }
    
    .process-steps {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--gray-80);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        transition: right 0.3s ease;
        z-index: 90;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    body.no-scroll {
        overflow: hidden;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

/* ==============================================
   ANIMACIONES PERSONALIZADAS
   ============================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==============================================
   ESTILOS PARA TERCEROS
   ============================================== */
/* Tippy.js - Tooltips */
.tippy-box[data-theme~='light'] {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-main);
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.tippy-box[data-theme~='light'] .tippy-arrow {
    color: var(--white);
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

/* ==============================================
   UTILIDADES
   ============================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* =================================================================== */
/* ======== ESTILOS PARA LA NUEVA SECCIÓN NOSOTROS (CENTRADO) ======== */
/* =================================================================== */

.about-section-revamped .section-header {
    text-align: center;
}

.about-intro-text {
    max-width: 700px; /* Limita el ancho del texto para mejor legibilidad */
    margin: 1rem auto 0 auto;
    color: var(--gray-30);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contenedor de la imagen principal */
.about-main-image-container {
    text-align: center;
    margin: 3rem 0;
}

.about-main-image-container img {
    max-width: 100%;
    width: 800px; /* Tamaño máximo para la imagen */
    height: auto;
    border-radius: var(--radius-lg);
    border: 3px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Contenedor para las cajas de Misión y Visión */
.about-boxes-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Asegura que las cajas tengan la misma altura */
    flex-wrap: wrap; /* Permite que se apilen en pantallas pequeñas */
    gap: 2rem; /* Espacio entre las cajas */
}

.about-box.card {
    display: flex;
    flex-direction: column; /* Alinea el contenido de la caja verticalmente */
    align-items: center;
    text-align: center;
    flex: 1 1 400px; /* Flexbox: permite crecer, encoger, con una base de 400px */
    padding: 2rem;
    background: var(--gray-80);
    border-left: none; /* Quitamos el borde izquierdo anterior */
    border-bottom: 4px solid var(--secondary); /* Añadimos un borde inferior */
}

.about-box-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-box-text h3 {
    margin-bottom: 1rem;
}