/* Fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* ============================================= */
/* ESTILOS GLOBALES Y VARIABLES         */
/* ============================================= */

:root {
    --primary-color: #01685a; 
    --secondary-color: #00bd27; 
    --accent-color: #ffc107; 
    --logo-blue-color: #007eb4;
    --logo-green-color: #00A859;
    --text-color: #333;
    --text-light: #666;
    --bg-color-light: #f8f9fa;
    --bg-color-white: #fff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --max-width: 1200px;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --color-forest-green-50: #eefff5;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

section {
    padding: 80px 0;
    text-align: center;
    scroll-margin-top: 99px; 
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 20px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* ============================================= */
/* HEADER                      */
/* ============================================= */

.header {
    background-color: var(--bg-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: 25px;
}

.main-nav a:hover {
    color: var(--secondary-color);
    background-color: var(--color-forest-green-50);
}

/* ============================================= */
/* SECCIÓN HERO                   */
/* ============================================= */

.hero {
    min-height: 90vh;
    padding: 0;
    background-color: var(--bg-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 0; 
    margin-top: -100px;
}

.hero-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: var(--max-width);
    height: 68vh;
    margin: 0 auto;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Columna Izquierda: Texto (Desktop) */
.hero-text-content {
    flex-basis: 50%;
    background-color: var(--bg-color-white);
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 40px 60px;
    text-align: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.hero-text-content h1 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.hero-text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    height: 55px;
    width: 220px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.cta-button.secondary {
    background-color: var(--logo-green-color);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 104, 90, 0.3);
    border: 2px solid var(--logo-green-color);
}

.cta-button.secondary:hover {
    background-color: #008f4a;
    border-color: #008f4a;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 189, 39, 0.4);
}


/* Columna Derecha: Slider (Desktop) */
.hero-slider-container {
    flex-basis: 50%;
    position: relative;
    height: 100%;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Imágenes con enfoque a la izquierda */
.slide img.focus-left {
     object-position: 15% center;
}

.slider-progress {
    position: absolute;
    bottom: 20px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 10;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    border-radius: 2px;
    /* La animación se controlará con JavaScript */
    transition: width 0.1s linear; 
}

/* Clase para activar la animación de llenado */
.progress-bar.animating {
    animation-name: fillProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ============================================= */
/* SECCIÓN ESTADÍSTICAS (STATS)         */
/* ============================================= */
.stats {
    background-color: transparent;
    box-shadow: none;
    padding: 60px 20px 80px; 
    margin-top: -15vh;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.stat-number::after {
    content: '';
    display: block;
    
    /* Valores para la línea debajo de stats */
    width: 90px;  /* Más ancho */
    height: 4px;  /* Más grueso */

    background-color: var(--secondary-color);
    border-radius: 2px;
    margin: 5px auto 8px; 
}

/* ============================================= */
/* SECCIÓN SOBRE NOSOTROS         */
/* ============================================= */
.about-us {
    padding: 80px 0; 
    margin-top: -12vh; 
    position: relative;
    z-index: 1;
}

.about-us .container {
    background-color: var(--bg-color-white); 
    padding: 40px 50px;                      
    border-radius: var(--border-radius);     
    box-shadow: var(--shadow-hover);         
    max-width: 900px;                        
    margin: 0 auto;                         
}


/* ============================================= */
/* SERVICIOS                    */
/* ============================================= */

.services {
    background-color: var(--color-forest-green-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-color-white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
}

/* ============================================= */
/* COBERTURA                    */
/* ============================================= */

.coverage-content {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.map-placeholder {
    flex: 1.5;
    flex-shrink: 0;
}

.coverage-map {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--color-forest-green-50);
}

.coverage-info {
    flex: 1;
}

.states-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.state-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.state-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

.state-item span {
    font-weight: 550;
    color: #333;
    font-size: 0.95rem;
}

.state-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

/* ============================================= */
/* EQUIPO                      */
/* ============================================= */

.team {
    background-color: var(--bg-color-white);
}

.team-content {
    margin-top: 40px;
}

.team-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    flex: 1 1 300px; 
    max-width: 350px; 
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--color-forest-green-50);
    border-radius: var(--border-radius);
    text-align: left;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

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

.repse-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.repse-info img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ============================================= */
/* BENEFICIOS                   */
/* ============================================= */

.benefits {
    background-color: var(--color-forest-green-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    background-color: var(--bg-color-white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.benefit-item h3 {
    color: var(--primary-color);
}

/* ============================================= */
/* CLIENTES                    */
/* ============================================= */

.clients {
    background-color: var(--bg-color-white);
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}

.client-logo img {
    max-height: 140px;
    width: auto;
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================= */
/* CONTACTO                    */
/* ============================================= */

.contact {
    background-color: var(--color-forest-green-50);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    width: 24px;
}

.whatsapp-button {
    background-color: #25D366;
    color: white !important;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    justify-content: center;
    margin-top: 20px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.contact-form {
    background-color: var(--bg-color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 189, 39, 0.1);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.submit-button .htmx-indicator {
    display: none;
}

.submit-button.htmx-request .htmx-request-text {
    display: none;
}
.submit-button.htmx-request .htmx-indicator {
    display: inline;
}

/* Clase para ocultar visualmente el label de servicios pero mantener accesible para lectores de pantalla */
.visual-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* Evita que el texto se divida en varias líneas */
  border: 0;
}

/* Estilos para mensajes de respuesta del formulario */
#form-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

/* Mensaje informativo (azul) - para límite de mensajes normales */
#form-response .info,
#form-response.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

#form-response.permanent .info.permanent {
    background-color: #d1ecf1;
    border: 2px solid #17a2b8;
    font-weight: 500;
}

/* Mensaje de éxito (verde) */
#form-response .success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Mensaje de advertencia temporal (amarillo/naranja) */
#form-response .warning,
#form-response.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Mensaje de error permanente (rojo) */
#form-response .error,
#form-response.permanent {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Estilo más intenso para errores permanentes */
#form-response.permanent .error.permanent {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* FOOTER                     */
/* ============================================= */

.footer {
    background-color: var(--primary-color);
    color: var(--bg-color-white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================= */
/* DISEÑO RESPONSIVO                 */
/* ============================================= */
/* Ajuste para tablet (1024px hacia abajo) */
@media (max-width: 1024px) {
    .stats,
    .about-us {
        margin-top: 0;
    }

    .hero-container {
        height: auto; 
        min-height: 70vh;
    }

    .hero-text-content h1 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
}

/* Tres columnas para beneficios en pantallas grandes */
@media (min-width: 993px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet y Móvil (Hasta 992px) */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }

     .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color-white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-nav a {
        padding: 15px 20px;
        display: block;
        border-radius: 0;
        text-align: left;
    }

    .hero {
        min-height: 0;
        padding-top: 0;
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        height: 80vh;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-text-content, .hero-slider-container {
        grid-area: 1 / 1;
        flex-basis: auto;
    }
    
    .hero-slider-container {
        z-index: 1;
        height: 100%;
    }

    .hero-text-content {
        z-index: 5;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 80%);
        justify-content: flex-end;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-text-content h1 {
        font-size: 2.2rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .about-us {
        margin-top: -40px;
        padding: 60px 0;
    }

    .about-us-container {
        box-shadow: none;
        border-radius: 0;
        padding: 0 20px;
    }

    .coverage-content {
        flex-direction: column;
        gap: 30px;
    }

    /* Stats responsive */
    .stats-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 40px 20px;
    }

    /* Se centra el elemento impar de los stats */
    .stat-item:last-child:nth-child(odd) {
        grid-column: span 2; 
    }
}

/* Móvil (Hasta 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .about-us {
    padding-top: 0px; 
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 1;
        text-align: center;
        align-items: center;
    }

    .contact-form {
        order: 2;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Stats responsive */
    .stats {
        margin-top: -6vh;
        padding-bottom: 50px;
        border-radius: 0;
        box-shadow: none;
    }
    .stats-grid {
        row-gap: 0px; 
    }

    .stat-number,
    .stat-item p {
        margin-bottom: 0;
    }

    .stat-number {
        margin-bottom: 0px;
    }

    .stat-item p {
        margin-bottom: 0;
    }
}

/* Móvil Pequeño (Hasta 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    .hero-text-content h1 {
        font-size: 1.9rem; 
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .service-card,
    .benefit-item {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 20px;
    }

    /* Stats responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }

    .stat-number {
    font-size: 2.2rem; 
    }

    .stat-item p {
    font-size: 0.9rem; 
    }
}

/* ============================================= */
/* ESTILOS DEL MODAL DE PRIVACIDAD      */
/* ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* Ancho del logo */
    height: 60px; /* Alto del logo */
    background-image: url('./assets/logo-linmso.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5; 
}

.modal-content h2 {
    text-align: center;
    margin-top: 100px;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.modal-content p {
    text-align: justify;
    color: var(--text-light);
    line-height: 1.7;
}

.modal-close {
    position: absolute; 
    top: 15px;          
    right: 20px;        
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;        
}

.modal-close:hover {
    color: var(--primary-color);
}

.last-update {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #999;
}

#privacy-modal,
#terms-modal {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================= */
/* ESTILOS PARA LA RESPUESTA DEL FORMULARIO      */
/* ============================================= */
#form-response {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
}

#form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}