/* =========================================
   VARIABLES GLOBALES & TEMA HOSTINGER 
   ========================================= */
:root {
    /* Colores solicitados por el usuario */
    --primary: #6240C8;      /* Morado / Azul */
    --primary-hover: #5031b0;
    --secondary: #1fb1a4;    /* Turquesa / Verde */
    --secondary-hover: #179389;
    
    /* Neutros y Fondos */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #111827;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    
    /* Efectos */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.bg-light { background-color: var(--bg-light); }

/* =========================================
   TEXTOS Y ENCABEZADOS (SEO Semantics)
   ========================================= */
h1, h2, h3 {
    color: var(--bg-dark);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-full {
    background-color: var(--primary);
    color: white;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 1rem;
}

.btn-primary-full:hover {
    background-color: var(--primary-hover);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--text-main);
}

.btn-outline-full {
    background-color: transparent;
    color: var(--text-main);
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.btn-outline-full:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Estado transparente inicial */
.navbar.navbar-transparent {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.navbar-transparent .nav-links a {
    color: #ffffff;
}

.navbar.navbar-transparent .menu-toggle .bar {
    background-color: #ffffff;
}

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

.logo-img {
    height: 54px;
    max-width: 221px;
    display: block;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.section {
    padding: 6rem 0;
}

/* =========================================
   1. HERO SECTION (Full Background Layout)
   ========================================= */
.full-hero {
    padding: 0; /* Remove default section padding */
    height: 100vh;
    min-height: 700px;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 0 !important; /* Override previous padding */
}

.bg-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center; /* Center vertically */
}

/* Oscurezco la imagen para legibilidad */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(17,24,39,0.9) 0%, rgba(17,24,39,0.6) 100%);
    z-index: 1;
}

/* El texto va sobre la capa oscura */
.hero-container {
    position: relative;
    z-index: 2;
    display: block; /* Remove grid to make it single column */
    max-width: 800px; /* Limiting width for easy reading */
    margin: 0 auto;
    text-align: center;
    padding-top: 70px; /* Acomodar Navbar */
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #ffffff; /* Texto Blanco */
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #ffffff;
}

.hero-features svg {
    width: 24px;
    height: 24px;
    color: var(--secondary); /* Turquesa */
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   2. NOSOTROS (Grid Features)
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   3. PAQUETES (Hostinger Style Pricing)
   ========================================= */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.highlighted {
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
    z-index: 2;
}

.card-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--secondary);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-extra {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary); /* Check en turquesa */
    font-weight: bold;
    font-size: 1.1rem;
}

/* =========================================
   4. PORTAFOLIO (Masonry env)
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: #e2e8f0;
    height: 250px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
}

/* =========================================
   5. CONTACTO
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-list {
    list-style: none;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.info-list li { 
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem; 
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary); /* El morado principal */
    flex-shrink: 0;
    margin-top: 2px;
}

.map-container {
    margin-top: 2rem;
    width: 100%;
    height: 250px;
    background: #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

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

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

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Pinta el SVG negro a blanco */
}

.footer-info p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links a, .footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    background-color: #0f172a;
    padding: 1.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   GO TO TOP BUTTON
   ========================================= */
.go-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.go-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-top-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px) scale(1.05);
}

.go-top-btn svg {
    width: 28px;
    height: 28px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }
    .pricing-card.highlighted {
        transform: scale(1);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1050px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
    }

    /* Siempre forzar el texto a oscuro en móvil, sin importar si el header superior ess transparente */
    .navbar .nav-links a,
    .navbar.navbar-transparent .nav-links a {
        color: var(--text-main) !important;
    }

    /* Asegurar que el icono hamburguesa sea visible siempre */
    .menu-toggle .bar {
        background-color: var(--bg-dark) !important;
    }
    .navbar.navbar-transparent .menu-toggle .bar {
        background-color: #ffffff !important;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

/* =========================================
   SWIPER / HERO ANIMATION OVERRIDES
   ========================================= */

/* Zoom effect on background images slightly while sliding */
.swiper-slide.bg-slide {
    background-size: cover;
    transform: scale(1);
    transition: transform 6s ease-out; /* Smooth slowly zooming out */
}

.swiper-slide.swiper-slide-active.bg-slide {
    transform: scale(1.05); /* Ligeramente más grande al entrar */
}

/* Animaciones de entrada en cada slide */
.swiper-slide .hero-content h1,
.swiper-slide .hero-content p,
.swiper-slide .hero-content ul,
.swiper-slide .hero-content .hero-actions {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}
.swiper-slide-active .hero-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
.swiper-slide-active .hero-content ul {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}
.swiper-slide-active .hero-content .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

/* Estilos extra para la paginación para que se vean sobre fondos oscuros */
.swiper-pagination-bullet {
    width: 14px !important;
    height: 14px !important;
    background: #ffffff !important;
    opacity: 0.5 !important;
    margin: 0 8px !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* Override background para seccion paquetes */
#paquetes {
    background-color: #111827 !important;
}
#paquetes h2, 
#paquetes > .container > p {
    color: #ffffff !important;
}

.error-text { color: #ef4444; font-size: 0.85rem; display: none; text-align: left; padding-left: 5px; margin-top: -10px; margin-bottom: 10px; }

.form-group { display: flex; flex-direction: column; width: 100%; margin-bottom: 15px; }

.form-label { display: block; font-weight: 700; color: #1f2937; margin-bottom: 5px; font-size: 0.95rem; text-align: left; }
.text-danger { color: #ff4d4f; }
.input-error { border: 1px solid #ff4d4f !important; box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15) !important; }

/* =========================================
   ESTILOS INPUT TELÉFONO LADA
   ========================================= */
.phone-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1.5rem;
    background: #ffffff;
    transition: all 0.3s ease;
}

.phone-wrapper:focus-within {
    border-color: #7c3aed; /* Púrpura igual al resto del formulario */
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.phone-wrapper.input-error {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15) !important;
}

/* Custom Lada Dropdown */
.custom-lada-dropdown {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
    user-select: none;
    padding-left: 0.8rem;
    display: flex;
    align-items: center;
}

.lada-selected {
    display: flex;
    align-items: center;
}

.lada-selected .flag {
    margin-right: 6px;
    font-size: 1.1rem;
}

.lada-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 110px;
    z-index: 100;
    display: none;
    padding: 6px;
}

.lada-menu.show {
    display: block;
}

.lada-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
}

.lada-option:last-child {
    margin-bottom: 0;
}

.lada-option:hover {
    background: #f3f4f6;
}

.lada-option .check {
    opacity: 0; /* Hidden by default */
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.9rem;
}

.lada-option.active {
    background: #4A82F2; /* Azul igual a la imagen enviada */
    color: white;
}

.lada-option.active .check {
    opacity: 1; /* Show checkmark */
    color: white;
}

.lada-option .flag {
    margin-right: 6px;
}

.phone-divider {
    width: 1px;
    height: 24px;
    background-color: #cbd5e1;
    margin: 0 10px;
}

.contact-form .phone-input {
    border: none !important;
    margin-bottom: 0 !important;
    padding-left: 4px !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
    flex-grow: 1;
}
.contact-form .form-control { margin-bottom: 2px !important; transition: all 0.2s ease-in-out; }
.form-control:focus { outline: none !important; border-color: #7c3aed !important; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15) !important; }
select.form-control { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px !important; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 1.2em !important; }
.error-text { color: #ff4d4f !important; font-size: 0.9rem !important; margin-top: 0px !important; margin-bottom: 0px !important; }

/* Map stretch fix */
.contact-info { display: flex; flex-direction: column; height: 100%; }
.map-container { flex: 1; min-height: 350px !important; height: auto !important; }
