/* ==========================================================
   VARIABLES Y ESTILOS BASE
   ========================================================== */
:root {
    --bg-black: #000000;
    --bg-light: #ffffff;
    --text-dark: #222222;
    --text-muted: #666666;
    --text-white: #ffffff;
    --btn-red: #ff5252;
    --menu-gray: #555555;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.5;
    padding-top: 0; /* Controlado desde hero/page-wrapper */
}

/* ==========================================================
   HEADER Y LOGO (ESCRITORIO Y BASE)
   ========================================================== */
.header {
    position: fixed;
    top: 0 !important; /* Siempre pegado arriba para tapar el scroll */
    left: 0;
    width: 100%;
    background-color: var(--bg-black);
    height: 120px; /* Aumentamos la altura de la barra negra */
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1350px;
    height: 100%;
    margin: 0 auto;
    padding: 35px 30px 0 30px; /* Este padding desciende el logo y el menú interior */
}

.logo {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.logo-img {
    height: 95px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    margin-top: -2px;
}

/* ==========================================================
   CABECERA Y LOGO MÓVIL
   ========================================================== */
@media screen and (max-width: 768px) {
    .header {
        top: 0 !important;
        height: 85px;
    }

    .nav-container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 20px !important;
        width: 100% !important;
        height: 100% !important;
    }

    .menu-toggle {
        flex-shrink: 0 !important;
        margin: 0 !important;
        z-index: 1010;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto;
    }

    .logo-img {
        height: 58px !important;
        width: auto !important;
        max-width: calc(100vw - 100px) !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        display: block !important;
        margin-top: 0 !important;
    }
}

/* ==========================================================
   NAVEGACIÓN ESCRITORIO
   ========================================================== */
.desktop-nav {
    display: none;
    margin-top: 0;
}

@media screen and (min-width: 769px) {
    .menu-toggle, 
    .side-menu, 
    .menu-overlay {
        display: none !important;
    }

    .desktop-nav {
        display: block;
    }

    .desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 28px;
        align-items: center;
    }

    .desktop-nav a {
        color: #b0b0b0;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 400;
        padding: 6px 0;
        position: relative;
        display: inline-block;
        transition: color 0.25s ease;
    }

    .desktop-nav a:hover,
    .desktop-nav li.active > a {
        color: #ffffff;
    }

    /* Línea blanca superior */
    .desktop-nav li.active > a::before,
    .desktop-nav li:hover > a::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 0;
        width: 100%;
        height: 1.5px;
        background-color: #ffffff;
    }

    /* Línea blanca inferior */
    .desktop-nav li.active > a::after,
    .desktop-nav li:hover > a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1.5px;
        background-color: #ffffff;
    }

    /* DESPLEGABLE ESCRITORIO (DROPDOWN) */
    .desktop-nav .dropdown {
        position: relative;
    }

    .desktop-nav .dropdown .dropdown-toggle i {
        font-size: 0.75rem;
        margin-left: 4px;
        transition: transform 0.3s ease;
    }

    .desktop-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-black);
        display: flex;
        flex-direction: column;
        min-width: 130px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .desktop-nav .dropdown-menu li {
        margin: 0;
        width: 100%;
    }

    .desktop-nav .dropdown-menu li a {
        padding: 8px 16px;
        display: block;
        font-size: 0.9rem;
        font-weight: 400;
        white-space: nowrap;
        text-align: left;
        color: #cccccc;
    }

    .desktop-nav .dropdown-menu li a::before,
    .desktop-nav .dropdown-menu li a::after {
        display: none !important;
    }

    .desktop-nav .dropdown-menu li a:hover {
        background-color: #26c6da !important;
        color: #ffffff !important;
    }

    .desktop-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .desktop-nav .dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* ==========================================================
   MENÚ DESPLEGABLE MÓVIL
   ========================================================== */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #cccccc;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 85px;
    left: -60%;
    width: 60%;
    height: calc(100vh - 85px);
    background-color: var(--menu-gray);
    z-index: 1002;
    transition: left 0.3s ease;
}

.side-menu.active {
    left: 0;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.side-nav a {
    color: var(--text-white);
    text-decoration: none;
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.side-nav li.active {
    background-color: var(--btn-red);
}

/* SUBMENÚ AFW EN MÓVIL */
.side-nav .mobile-submenu {
    list-style: none;
    padding-left: 25px;
    margin-top: 0;
    margin-bottom: 5px;
    background-color: rgba(0, 0, 0, 0.15);
}

.side-nav .mobile-submenu li {
    border-bottom: none;
}

.side-nav .mobile-submenu li a {
    font-size: 0.88rem;
    padding: 8px 15px;
    opacity: 0.88;
}

/* ==========================================================
   HERO / PORTADA (CORREGIDO ESPACIADO SUPERIOR)
   ========================================================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 40px 20px !important; /* Espaciado superior forzado en escritorio */
}

.script-title {
    font-family: var(--font-script);
    font-size: 5.5rem;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--btn-red);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 70px;
    text-decoration: none;
    border-radius: 0px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #ff3333;
}

@media screen and (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 150px 20px 30px 20px !important; /* Espaciado superior forzado en móvil para librar los 85px del header */
    }

    .script-title {
        font-size: 2.2rem !important;
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        line-height: 1.2;
    }

    .btn-primary {
        padding: 10px 45px;
        font-size: 0.9rem;
    }
}

/* ==========================================================
   SERVICIOS
   ========================================================== */
.services-list {
    padding: 40px 20px;
    text-align: center;
}

.service-card {
    margin-bottom: 50px;
}

.service-img {
    max-width: 450px;
    margin: 0 auto 15px;
}

.service-img img {
    width: 100%;
    height: auto;
    display: block;
}

.service-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: #dddddd;
    font-size: 0.92rem;
    max-width: 450px;
    margin: 0 auto 18px;
    line-height: 1.4;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 8px 32px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-black);
}

/* ==========================================================
   SECCIONES DE FONDO BLANCO
   ========================================================== */
.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 50px 20px;
    text-align: center;
}

.light-section.border-top {
    border-top: 1px solid #e5e5e5;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 14px;
    line-height: 1.5;
}

.promo-box {
    margin-top: 25px;
}

.event-info {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 20px;
}

.stacked-images img {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto 15px;
}

.about-list {
    list-style: none;
    text-align: center;
}

.about-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 30px;
}

@media screen and (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-card {
    position: relative;
    background: #444;
}

.grid-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-label {
    background-color: rgba(85, 85, 85, 0.9);
    color: var(--text-white);
    font-size: 0.8rem;
    padding: 8px 4px;
    text-align: center;
    width: 100%;
}

.about-photo-single img, 
.banner-img img {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 auto 20px;
}

.subtitle-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-red-block {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 12px;
    background-color: var(--btn-red);
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    text-align: center;
    border-radius: 2px;
}

.btn-whatsapp i {
    font-size: 1.1rem;
    margin-right: 5px;
}

.clean-form {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.clean-form .form-group {
    margin-bottom: 15px;
}

.clean-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.clean-form input, 
.clean-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #e2e2e2;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

/* ==========================================================
   FOOTER Y SECCIÓN CONTACTO
   ========================================================== */
.dark-section {
    background-color: var(--bg-black);
    color: var(--text-white);
    padding: 50px 20px;
    text-align: left;
}

@media screen and (min-width: 769px) {
    .dark-section {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        gap: 40px;
    }
}

.map-box {
    margin-bottom: 25px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.contact-info {
    color: #cccccc;
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-info a {
    color: #cccccc;
    text-decoration: none;
}

.red-link {
    color: var(--btn-red) !important;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    margin: 15px 0;
}

.social-icons a {
    color: var(--text-white);
}

.newsletter-form {
    margin-top: 15px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 38px;
    height: 38px;
    background-color: #555555;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 2px;
    z-index: 999;
}
/* ==========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: transform 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    color: #ffffff !important;
}

/* Ajuste de tamaño en móviles */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
        bottom: 18px;
        left: 15px;
    }
}
