
/* Variables de color */
:root {
    --navy: #002147; /* Azul Marino Elegante */
    --white: #ffffff;
    --light-gray: #f4f4f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--white); color: #333; line-height: 1.6; }

/* Header - Siempre visible en móvil */
header {
    background-color: var(--navy);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img { height: 50px; }

nav ul { display: flex; list-style: none; gap: 20px; }

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Hero Section con imagen de fondo */
.hero {
    background: linear-gradient(rgba(0,33,71,0.7), rgba(0,33,71,0.7)), url('../assets/img/fondo.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 10%;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 800px; margin-bottom: 2rem; }

/* Botones */
.btn-container { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-navy { background-color: var(--navy); color: var(--white); border: 2px solid var(--white); }
.btn-white { background-color: var(--white); color: var(--navy); }

/* Creamos la línea invisible debajo del link */
nav ul li a::after {
    content: '';
    display: block;
    width: 0;                /* Empieza con ancho cero */
    height: 2px;
    background: var(--white);
    transition: width 0.3s;  /* La magia de la animación */
}

/* Al pasar el mouse, la línea crece al 100% */
nav ul li a:hover::after {
    width: 100%;
}

/* Grid de Servicios */
.services { padding: 5rem 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px; /* Bordes redondeados */
    border: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.card:hover { transform: translateY(-10px); border-color: var(--navy); }
.card h3 { color: var(--navy); margin-bottom: 15px; font-size: 1.2rem; }

/* Footer Actualizado Zionweb */
footer { 
    background: var(--navy); 
    color: var(--white); 
    padding: 2.5rem 5% 1.5rem; /* Bajamos de 4rem a 2.5rem arriba y 1.5rem abajo */
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Reducimos el espacio entre elementos de 20px a 15px */
}

/* Títulos de las secciones del footer */
.footer-heading {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--white);
}

/* Contenedor de enlaces: Centrados y con raya */
.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    margin-bottom: 10px;
}

footer a { 
    color: var(--white); 
    text-decoration: underline !important; /* LA LÍNEA DEBAJO */
    text-underline-offset: 5px; /* Separa la línea de la letra para que se vea mejor */
    font-size: 1rem;
    transition: opacity 0.3s;
}

footer a:hover { 
    opacity: 0.7; 
    color: #28a745; /* Verde al pasar el mouse */
}

/* Estilos para el Mapa */
.map-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 10px 0; /* Bajamos de 20px a 10px */
    position: relative;
}

.map-wrapper iframe {
    border-radius: 15px; /* Bordes redondeados como en tu imagen */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.map-link-text {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: underline;
}

/* Copyright centrado al final */
.footer-bottom {
    margin-top: 15px; /* Bajamos de 30px a 15px */
    padding-top: 15px; /* Bajamos de 20px a 15px */
    font-size: 0.85rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

/* El cuadro azul decorativo del final */
.navy-callout {
    border-left: 5px solid #002147;
    padding-left: 20px;
    margin-top: 30px;
    font-weight: bold;
    color: #002147;
}

/* EL CONTENEDOR PADRE: El que hace la magia */
.about-container {
    display: flex;          /* Obliga a los hijos a ponerse de lado */
    align-items: center;    /* Los centra verticalmente (que no se vea uno más arriba) */
    justify-content: space-between; 
    gap: 50px;              /* Espacio de separación entre los dos bloques */
    padding: 100px 8%;      /* Margen interno de la sección */
    max-width: 1400px;      /* Para que en pantallas gigantes no se estiren demasiado */
    margin: 0 auto;         /* Centra todo el bloque en la pantalla */
}

/* EL TEXTO: Ocupa el 50% */
.about-text {
    flex: 1;                /* Toma exactamente la mitad del espacio disponible */
    text-align: left;
}

/* LA IMAGEN: Ocupa el otro 50% */
.about-image {
    flex: 1;                /* Toma la otra mitad exacta */
    display: flex;
    justify-content: flex-end; /* Empuja la foto un poco a la derecha */
}

.about-image img {
    width: 100%;
    max-width: 450px;       /* Ajusta el tamaño de la foto */
    border-radius: 20px;
    box-shadow: 15px 15px 0px var(--navy); /* La sombra azul que querías */
}

/* EL CUADRO AZUL (Callout) */
.navy-callout {
    border-left: 5px solid var(--navy);
    padding-left: 20px;
    margin-top: 30px;
    font-weight: bold;
    color: var(--navy);
}

/* RESPONSIVE: Para que en celular se vuelvan a poner uno arriba de otro */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column-reverse; /* Imagen arriba, texto abajo en celular */
        text-align: center;
        padding: 50px 5%;
    }
    .about-text { text-align: center; }
}
/* AJUSTE PARA CELULAR */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse; /* Imagen arriba, texto abajo */
    }
}
/* Estilos para la página de políticas */
.policy-page {
    padding: 80px 10%;
    background-color: #ffffff;
    max-width: 900px; /* Más estrecho para que sea más fácil de leer */
    margin: 0 auto;
}

.policy-content h1 {
    color: #002147;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.effective-date {
    font-style: italic;
    color: #777;
    margin-bottom: 40px;
}

.policy-content h2 {
    color: #002147;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.policy-content p, .policy-content li {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Cuadro destacado para ADA */
.ada-notice {
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #002147;
    margin-top: 40px;
}

/* ============================================================
   SECCIÓN PRECIOS - ZION WEB (FINAL & RESPONSIVE)
   ============================================================ */

.pricing-section {
    padding: 80px 5%;
    background-color: #f8f9fa;
    text-align: center;
}

.pricing-intro h1 {
    color: var(--navy);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

/* Grid de Tarjetas */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 40px auto;
    align-items: start;
}

.price-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,33,71,0.15);
    border-color: var(--navy);
}

/* Plan Destacado */
.price-card.featured {
    border: 2px solid var(--navy);
}

.popular-tag {
    background: var(--navy);
    color: white;
    padding: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* Contenido de la Tarjeta */
.card-summary {
    padding: 30px 20px;
}

.card-summary h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #222;
}

.card-summary ul {
    list-style: none;
    text-align: left;
    margin-bottom: 15px;
}

.card-summary ul li, .card-details ul li {
    font-size: 0.9rem;
    padding: 5px 0;
}

.card-summary ul li::before, .card-details ul li::before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.view-more {
    color: #007bff;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- EFECTO DE EXPANSIÓN --- */
.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0 20px;
    background: #fafafa;
    text-align: left;
}

.price-card:hover .card-details {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-select {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--navy);
    color: white !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* --- TABLA COMPARATIVA --- */
.zwd-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 80px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.zwd-pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.zwd-pricing-table th {
    background: var(--navy);
    color: white;
    padding: 15px;
}

.zwd-pricing-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
}

.zwd-pricing-table td:first-child {
    text-align: left;
    font-weight: bold;
    color: var(--navy);
}

/* --- ADD-ONS --- */
.addons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.addon-btn {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.addon-btn:hover {
    background: var(--navy);
    color: white;
}

/* MEDIA QUERIES PARA MÓVIL */
@media (max-width: 768px) {
    .price-card:hover { transform: none; }
    .price-card.featured { transform: none; }
    
    /* En móvil se expande al tocar */
    .price-card:active .card-details,
    .price-card:focus .card-details {
        max-height: 1000px;
        opacity: 1;
    }
}

/* Contenedor principal */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    background-color: #050a18; /* Fondo de la sección oscuro para que resalten las tarjetas */
}

/* Base de la tarjeta */
.addon-card {
    height: 280px; /* Altura para que el grid sea estable */
    position: relative;
    perspective: 1000px;
}

/* Contenido de la tarjeta */
.addon-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a1128; /* Azul Marino */
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* EFECTO HOVER: Expansión en todas las direcciones */

/* 1. Contenedor transparente para que use el fondo blanco de tu página */
.addons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ESTO centra la última tarjeta */
    gap: 30px;
    padding: 60px 20px;
    background-color: transparent; /* Quitamos el cuadro oscuro */
}

/* 2. Base de la tarjeta */
.addon-card {
    flex: 0 1 350px;
    height: 300px;
    position: relative;
    z-index: 1;
}

/* 3. La tarjeta (Azul Marino sobre tu fondo blanco) */
.addon-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-color: #0a1128; /* Azul Marino Premium */
    color: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    
    /* Sombra suave para que resalte sobre el blanco */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}

/* 4. Efecto de expansión al pasar el mouse */
.addon-card:hover {
    z-index: 100; /* Se pone por encima de las demás */
}

.addon-card:hover .addon-inner {
    transform: scale(1.1); /* Crece hacia todos los lados */
    height: auto;
    min-height: 150%; /* Crece hacia abajo para mostrar detalles */
    background-color: #0f172a; /* Se aclara un poquito el azul */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); /* Sombra más fuerte al flotar */
    border: 1px solid #28a745; /* Borde verde Zionweb */
}

/* Títulos y precios */
.addon-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.regular-price {
    color: #71717a;
    font-size: 0.9rem;
}

.client-price {
    color: #28a745;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 5px 0 15px 0;
}

.addon-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.more-details-label {
    margin-top: auto;
    font-size: 0.8rem;
    color: #28a745;
    font-weight: bold;
    text-transform: uppercase;
}

/* Lista de características (oculta hasta el hover) */
.addon-features {
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
    width: 100%;
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.addon-card:hover .addon-features {
    opacity: 1;
    max-height: 500px;
}

.addon-features ul {
    list-style: none;
    padding: 0;
}

.addon-features li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.addon-features li::before {
    content: "✓";
    color: #28a745;
    margin-right: 12px;
    font-weight: bold;
}

.click-prompt {
    display: block;      /* Para que ocupe toda la línea */
    font-size: 10px;     /* Tamaño bien pequeño */
    text-align: center;  /* Centrado */
    color: #888;         /* Color gris suave */
    margin-top: 15px;    /* Espacio arriba para que no pegue a los puntos */
    width: 100%;         /* Para que se centre respecto a la tarjeta */
    font-style: italic;  /* Un toque elegante */
}

/* Móvil */
@media (max-width: 768px) {
    .addon-card {
        flex: 1 1 100%;
        height: auto;
    }
    .addon-inner {
        position: relative;
        transform: none !important;
    }
    .addon-features {
        opacity: 1;
        max-height: none;
    }
}

/* Contenedor del título */
#anim-title {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    color: white; /* O el color que prefieras */
}

/* Estilo para cada letra individual */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-100px); /* Empiezan 100px arriba */
    animation: dropLetter 0.6s ease-out forwards;
}

/* Animación de caída */
@keyframes dropLetter {
    to {
        opacity: 1;
        transform: translateY(0); /* Terminan en su lugar */
    }
}