/* =========================================
   RESET & GLOBALS
   ========================================= */
html {
    scroll-behavior: smooth;
}

:root {
    --dark-blue: #041f3d;
    --medium-blue: #0a3560;
    --light-blue: #009ce1;
    --neon-blue: #66d9ff;
    --bg-light: #f4f7f9;
    --text-main: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   HEADER & NAVEGACIÓN
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 156, 225, 0.1);
}

.logo-container img {
    height: 45px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--light-blue);
    box-shadow: 0 0 8px var(--light-blue);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--light-blue);
}

nav a:hover::after {
    width: 100%;
}

/* =========================================
   HERO SECTION - FONDO PARALLAX
   ========================================= */
.hero {
    --mouse-x: 0px;
    --mouse-y: 0px;
    background-color: var(--dark-blue);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 156, 225, 0.15) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 
        calc(50% + var(--mouse-x) * 0.5) calc(50% + var(--mouse-y) * 0.5), 
        calc(50% + var(--mouse-x)) calc(50% + var(--mouse-y)), 
        calc(50% + var(--mouse-x)) calc(50% + var(--mouse-y));
    color: var(--white);
    padding: 130px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-position 0.1s ease-out; 
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -1px;
    animation: fadeUp 0.6s ease-out forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(0, 156, 225, 0.7);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.2s forwards;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   BOTÓN INTERACTIVO FLUIDO
   ========================================= */
.btn-glow-container {
    display: inline-block;
    position: relative;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.4s forwards;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: var(--dark-blue); 
}

.btn-glow-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(102, 217, 255, 0.4), 0 10px 25px rgba(0, 156, 225, 0.4);
}

.btn {
    --btn-x: 50%;
    --btn-y: 50%;
    position: relative;
    display: block;
    color: var(--white);
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    z-index: 1;
    background: transparent; 
    transition: color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--btn-x) var(--btn-y), var(--neon-blue) 0%, var(--light-blue) 50%, var(--medium-blue) 100%);
    opacity: 0; 
    transition: opacity 0.4s ease; 
    z-index: -1;
}

.btn-glow-container:hover .btn::before {
    opacity: 1; 
}

/* =========================================
   SERVICIOS MAIN INDEX
   ========================================= */
.services {
    padding: 100px 5%;
    background-color: var(--bg-light);
}

.services-header h2 {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(4, 31, 61, 0.05);
    border: 1px solid rgba(4, 31, 61, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--light-blue), var(--neon-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 156, 225, 0.15), 0 0 20px rgba(0, 156, 225, 0.05) inset;
    border-color: rgba(0, 156, 225, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--light-blue);
}

.service-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
}

.link-more {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.link-more::after {
    content: '→';
    margin-left: 8px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.link-more:hover {
    color: var(--dark-blue);
    text-shadow: 0 0 5px rgba(0, 156, 225, 0.3);
}

.link-more:hover::after {
    transform: translateX(6px);
}

/* =========================================
   PÁGINAS DE PAQUETES Y CUADRÍCULAS
   ========================================= */

#subHero {
    padding: 100px 5% 60px;
    min-height: auto;
}

.nav-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn-secondary {
    padding: 12px 30px;
    border: 2px solid var(--neon-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(0, 156, 225, 0.1);
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: var(--neon-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 15px rgba(102, 217, 255, 0.4);
}

.section-title {
    text-align: center;
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin: 4rem 0 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

/* Cuadrícula de Paquetes */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 5%;
}

/* Tarjeta Individual */
.package-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(4, 31, 61, 0.05);
    border: 1px solid rgba(0, 156, 225, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 156, 225, 0.15);
    border-color: var(--light-blue);
}

/* =========================================
   CORRECCIÓN DE ALINEACIÓN DE ENCABEZADO Y PRECIO
   ========================================= */
.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    gap: 10px; /* Reducimos el espacio un poco para que respire */
    flex-wrap: wrap; /* Seguro de vida: Si no cabe, baja al siguiente renglón en lugar de cortarse */
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(4, 31, 61, 0.1);
    padding-bottom: 1rem;
}

.package-header h3 {
    color: var(--dark-blue);
    font-size: 1.4rem; /* Ligeramente más chico para dar espacio a nombres muy largos */
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    flex: 1 1 120px; /* Le permite ser flexible pero con un tamaño mínimo para no aplastarse */
    word-wrap: break-word; /* Evita que palabras súper largas rompan el diseño */
}

.price-tag {
    color: var(--light-blue);
    font-weight: 900;
    font-size: 1.15rem; /* Ajustado para encajar mejor con el texto "Desde" */
    white-space: nowrap; /* Evita que el precio en sí se rompa a la mitad */
    flex-shrink: 0; /* Evita que se aplaste */
}

.short-desc {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Acordeón de Detalles */
.details-toggle {
    background: none;
    border: none;
    color: var(--medium-blue);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0;
    transition: color 0.3s ease;
}

.details-toggle:hover {
    color: var(--light-blue);
}

.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.extra-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
}

.extra-info.active {
    max-height: 600px;
    opacity: 1;
    margin-top: 10px;
    margin-bottom: 1.5rem;
}

.extra-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.extra-info li {
    padding: 6px 0;
    color: #444;
    font-size: 0.9rem;
    position: relative;
    padding-left: 22px;
    line-height: 1.4;
}

.extra-info li::before {
    content: '✓';
    color: var(--light-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Botón de Orden de Paquetes */
.btn-order {
    margin-top: auto; 
    display: block;
    text-align: center;
    background: transparent;
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-order:hover {
    box-shadow: 0 0 15px rgba(0, 156, 225, 0.3);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
}

/* =========================================
   ESTILOS PARA DETALLES DE PAQUETES INDIVIDUALES
   ========================================= */
.detail-hero {
    padding: 45px 5% 30px;
}

.detail-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.3rem;
}

.price-hero {
    font-size: 2rem !important;
    color: var(--neon-blue) !important;
    font-weight: 900 !important;
    margin-bottom: 0.8rem !important;
    text-shadow: 0 0 15px rgba(102, 217, 255, 0.3);
}

.package-detail-section {
    padding: 40px 5% 80px;
    background-color: var(--bg-light);
}

.btn-back {
    display: inline-block;
    margin-bottom: 2.5rem;
    color: var(--medium-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn-back:hover {
    color: var(--light-blue);
    transform: translateX(-5px);
}

.package-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-description h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.detail-description p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.alert-box {
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    background: rgba(0, 156, 225, 0.05);
    border-left: 5px solid var(--neon-blue);
    color: var(--dark-blue);
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-title {
    color: var(--medium-blue);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.alert-box p {
    margin-bottom: 1rem;
}

.alert-box strong {
    color: var(--medium-blue);
}

.btn-upsell {
    display: inline-block;
    margin-top: 5px;
    padding: 10px 20px;
    background-color: var(--medium-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-upsell:hover {
    background-color: var(--neon-blue);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.detail-features {
    list-style: none;
    margin-bottom: 2rem;
}

.detail-features li {
    padding: 12px 0 12px 35px;
    color: #333;
    font-size: 1.05rem;
    position: relative;
    border-bottom: 1px solid rgba(4, 31, 61, 0.05);
}

.detail-features li::before {
    content: '✓';
    color: var(--light-blue);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.limitations-list li::before {
    content: '⚠️';
    color: inherit;
    font-size: 1.1rem;
}

.exclusions-list li {
    color: #666;
}

.exclusions-list li::before {
    content: '✕';
    color: #e74c3c;
    font-size: 1.2rem;
}

.action-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(4, 31, 61, 0.08);
    border: 1px solid rgba(0, 156, 225, 0.1);
    position: sticky;
    top: 100px;
    text-align: center;
}

.action-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.action-card p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* =========================================
   ESTILOS PARA CONTACTO (contacto.html)
   ========================================= */
.contact-section {
    padding: 80px 5%;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-info p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-methods {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-methods li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    color: var(--dark-blue);
    font-weight: 600;
}

.contact-methods a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-methods a:hover {
    color: var(--neon-blue);
}

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 156, 225, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--light-blue), var(--neon-blue));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f9fbfd;
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(0, 156, 225, 0.15);
    background: var(--white);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =========================================
   FOOTER GLOBAL
   ========================================= */
footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 4rem 5%;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
    opacity: 0.5;
}

.social-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--white);
    text-shadow: 0 0 15px var(--neon-blue);
    transform: scale(1.02);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDAD MÓVIL)
   ========================================= */
@media (max-width: 900px) {
    .package-detail-grid {
        grid-template-columns: 1fr;
    }
    .action-card {
        position: relative;
        top: 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero {
        padding: 80px 5%;
    }
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .package-header {
        flex-direction: column; /* En celulares pequeños, baja el precio */
        align-items: flex-start;
    }
}