/* ===================================================
   TUFIESTA.COM.CO - DISEÑO PREMIUM 2025
   =================================================== */

   :root {
    --primary: #1D6E8D;        /* Azul Turquesa Oscuro */
    --secondary: #1F86A5;      /* Azul Medio */
    --accent: #E63990;         /* Magenta/Fucsia */
    --gold: #D4AF37;           /* Dorado Premium */
    --text: #333333;
    --light-bg: #F9F9F9;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    /* IMPORTANTE: Compensar el espacio del Header Fijo */
    padding-top: 80px; 
}

h1, h2, h3, h4 { font-family: var(--font-serif); }

a { text-decoration: none; transition: 0.3s; }

/* ---------------- HEADER & NAV (CORREGIDO) ---------------- */
header {
    background: var(--primary);
    padding: 10px 5%; /* Ajustado ligeramente */
    position: fixed; /* CAMBIO: Fixed para garantizar que flote sobre todo */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 3000; /* CAMBIO: Z-Index muy alto para evitar superposiciones */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    height: 80px; /* Altura fija definida para cálculos */
}

.logo img { height: 50px; }

/* Desktop Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.btn-nav-cotizar {
    background: var(--accent);
    padding: 10px 20px !important;
    border-radius: 30px;
    color: white !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(230, 57, 144, 0.4);
}

.btn-nav-cotizar:hover {
    background: white;
    color: var(--accent) !important;
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.hamburger { 
    display: none; 
    color: white; 
    font-size: 1.8rem; 
    background: none; 
    border: none; 
    cursor: pointer; 
    z-index: 3001; /* Encima del header */
}

/* ---------------- HERO SECTIONS (CORREGIDO) ---------------- */
/* Hero Principal (Index) */
.hero-main {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../banner/fondo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    /* Ajuste para que empiece desde arriba visualmente si fuera transparente, 
       pero como el header es sólido, margin-top: 0 está bien con el padding-top del body */
}

/* Hero para Subpáginas (Pequeño) - CORREGIDO */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 80px 5% 60px; /* Padding ajustado */
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column; /* Asegura que el contenido se apile verticalmente */
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    position: relative; /* Para aceptar z-index */
    z-index: 1; /* Nivel bajo para no tapar menús */
    /* Eliminar cualquier margin negativo que cause conflicto */
    margin-top: 0; 
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ---------------- SECTIONS & COMPONENTS ---------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(230, 57, 144, 0.3);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 110, 141, 0.3);
}

/* ---------------- CARDS (SERVICIOS / VALORES) ---------------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-service {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 5px solid transparent;
}

.card-service:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
}

.card-service i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.card-service h3 { color: var(--primary); margin-bottom: 15px; }

/* ---------------- NOSOTROS & VALORES ---------------- */
.split-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.split-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.value-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.value-card h4 { color: var(--accent); margin-bottom: 10px; }

/* ---------------- INVITACIONES DIGITALES ---------------- */
.features-list ul { list-style: none; margin-top: 20px; }
.features-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}
.features-list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* ---------------- CONTACTO FORM ---------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-box i {
    color: var(--accent);
    font-size: 1.5rem;
    width: 40px;
}

.form-group { margin-bottom: 20px; }
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
}
.form-control:focus { border-color: var(--primary); outline: none; }

/* ---------------- BOTÓN WHATSAPP FLOTANTE ---------------- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    z-index: 9999;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.btn-whatsapp:hover { transform: scale(1.1); }
.btn-whatsapp img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- PLANES Y PRECIOS ---------------- */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05); /* Borde sutil */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

/* Plan Destacado (Icon/Premium) */
.plan-card.icon {
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}
.plan-card.icon:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-header {
    padding: 30px 20px 20px;
    text-align: center;
    background-color: var(--light-bg); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.plan-card.icon .plan-header {
    background-color: var(--primary);
    color: white;
}
.plan-card.icon .plan-header h2,
.plan-card.icon .plan-header p.subtitle {
    color: white;
}
.plan-card.icon .plan-header p.price {
    color: var(--gold);
}

.plan-header h2 {
    font-family: var(--font-serif);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header p.price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.plan-header p.subtitle {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.plan-features {
    padding: 25px;
    flex-grow: 1; /* Para alinear botones al final */
}

.plan-features h3 {
    font-family: var(--font-main);
    font-size: 1.1em;
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 2px dashed rgba(0,0,0,0.1);
    padding-bottom: 5px;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features ul li {
    font-size: 0.95em;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
    text-align: left;
}

/* Icono de check */
.plan-features ul li:before {
    content: '\f005'; /* Estrella FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 0.8em;
    top: 3px;
}

/* Badge Premium */
.plan-header h2 .badge {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.4em;
    color: var(--primary);
    background-color: var(--gold);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 700;
}

.call-to-action {
    text-align: center;
    padding: 20px 25px 30px;
    background-color: white;
}

.btn-contact {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
    background-color: var(--accent); /* Hover Magenta */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230, 57, 144, 0.3);
    color: white;
}

/* ---------------- MODAL DE POLÍTICA DE DATOS ---------------- */
.modal-policy-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999; /* Por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Fondo oscuro semitransparente */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); /* Efecto borroso elegante */
}

.modal-policy-content {
    background-color: white;
    padding: 35px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-top: 5px solid var(--primary); /* Detalle de color corporativo */
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-policy-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.policy-text {
    text-align: justify;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto; /* Scroll si el texto es muy largo en móviles */
    padding-right: 10px;
}

.modal-policy-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-policy-accept, .btn-policy-reject {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.btn-policy-accept {
    background-color: var(--primary);
    color: white;
}

.btn-policy-accept:hover {
    background-color: var(--accent); /* Cambio a magenta al hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-policy-reject {
    background-color: #e0e0e0;
    color: #333;
}

.btn-policy-reject:hover {
    background-color: #d6d6d6;
}

/* Responsivo para botones del modal */
@media (max-width: 480px) {
    .modal-policy-actions {
        flex-direction: column-reverse;
    }
    .btn-policy-accept, .btn-policy-reject {
        width: 100%;
    }
}

/* ---------------- RESPONSIVE (CORREGIDO) ---------------- */
@media (max-width: 991px) {
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 80px; /* Altura del header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px); /* Ocupar el resto de la pantalla */
        background: var(--primary);
        transition: 0.4s;
        text-align: center;
        padding-top: 50px;
        z-index: 2900; /* Alto, pero menor que el header (3000) para que salga "de abajo" */
        overflow-y: auto; /* Permitir scroll si el menú es muy alto */
    }
    
    .nav-menu.active { left: 0; }
    
    .nav-menu ul { flex-direction: column; }
    .nav-menu a { font-size: 1.2rem; color: white; display: block; padding: 15px; }
    
    .split-content, .contact-grid { grid-template-columns: 1fr; flex-direction: column; }
    .page-header h1 { font-size: 2.2rem; }
    
    /* Ajuste del Page Header en móvil para que no sea tan grande */
    .page-header {
        padding: 50px 5% 40px;
    }
    
    .pricing-table {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}