/* =========================================================
   CERROJO 24/7 - ESTILOS PRINCIPALES
========================================================= */

/* =========================================================
   GENERAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
}

::selection {
    background: #f3c65b;
    color: #07111f;
}

/* =========================================================
   HERO
========================================================= */

.hero-overlay {
    background: linear-gradient(90deg, rgba(5, 15, 28, 0.98) 0%, rgba(5, 15, 28, 0.91) 36%, rgba(5, 15, 28, 0.62) 64%, rgba(5, 15, 28, 0.35) 100%);
}

.hero-section {
    min-height: 1050px;
    padding-bottom: 190px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(243, 198, 91, 0.3);
    background: rgba(243, 198, 91, 0.1);
    color: #f3c65b;
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f3c65b;
    box-shadow: 0 0 0 7px rgba(243, 198, 91, 0.08);
}

.hero-title {
    margin-top: 28px;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.hero-title span {
    color: #f3c65b;
}

.hero-description {
    margin-top: 28px;
    max-width: 610px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.75;
}

.call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* =========================================================
   GLASS EFFECTS
========================================================= */

.glass-nav {
    background: rgba(13, 25, 40, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.glass-card {
    background: rgba(20, 31, 46, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   LOGO & NAVIGATION
========================================================= */

.logo-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3c65b;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-whatsapp {
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-whatsapp:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-2px);
}

/* =========================================================
   GOLD BUTTON
========================================================= */

.gold-button {
    background: linear-gradient(135deg, #f8d87b 0%, #f3c65b 50%, #ddae3f 100%);
    color: #111827;
    box-shadow: 0 10px 35px rgba(243, 198, 91, 0.2);
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(243, 198, 91, 0.35);
}

/* =========================================================
   MOBILE MENU BUTTON & MOBILE MENU
========================================================= */

.mobile-menu-button {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 22px;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    display: none;
    margin-top: 10px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 22, 37, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 5px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 13px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.mobile-whatsapp {
    margin-top: 5px;
    background: #25d366 !important;
    color: white !important;
    font-weight: 700;
}

/* =========================================================
   HERO SERVICE CARDS
========================================================= */

.hero-service {
    padding: 25px;
    border-radius: 16px;
}

.hero-service:hover {
    background: rgba(25, 38, 55, 0.9);
    border-color: rgba(243, 198, 91, 0.4);
}

.service-icon-dark {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(243, 198, 91, 0.1);
    color: #f3c65b;
    font-size: 23px;
}

.service-tag {
    color: #f3c65b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.service-link {
    display: inline-flex;
    margin-top: 20px;
    color: #f3c65b;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-link:hover {
    transform: translateX(5px);
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin-top: 12px;
    color: #020617;
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin-top: 20px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.75;
}

.section-heading.dark h2 {
    color: white;
}

.section-label {
    color: #ddae3f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-label.light {
    color: #ddae3f;
}

/* =========================================================
   SERVICES
========================================================= */

.service-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
}

.service-card:hover {
    border-color: rgba(221, 174, 63, 0.4);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.service-icon {
    color: #334155;
    font-size: 38px;
}

.service-card h3 {
    margin-top: 22px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.service-card p {
    margin-top: 9px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   ABOUT
========================================================= */

.image-glow {
    position: absolute;
    inset: -12px;
    border-radius: 30px;
    background: rgba(243, 198, 91, 0.1);
    filter: blur(35px);
}

.trust-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3c65b;
    color: #07111f;
    font-size: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    display: flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #f3c65b;
    font-size: 18px;
}

.feature-item h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.feature-item p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   LOCATIONS & MAP
========================================================= */

.location-card {
    padding: 17px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
}

.location-card:hover {
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.location-card i {
    color: #ddae3f;
    font-size: 20px;
}

.location-card p {
    margin-top: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.map-card {
    padding: 12px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.map-placeholder {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-radius: 17px;
    background: #cbd5e1;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: 0.65;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #f3c65b;
    color: #07111f;
    font-size: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonial-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 31, 46, 0.72);
    backdrop-filter: blur(15px);
}

.testimonial-card:hover {
    border-color: rgba(243, 198, 91, 0.3);
}

.stars {
    display: flex;
    gap: 4px;
    color: #f3c65b;
    font-size: 14px;
}

.testimonial-card > p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.author-avatar {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f3c65b;
    font-size: 12px;
    font-weight: 700;
}

.testimonial-author strong {
    display: block;
    color: white;
    font-size: 14px;
}

.testimonial-author span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

/* =========================================================
   FINAL CTA & FOOTER
========================================================= */

.final-cta {
    position: relative;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 30px;
    border-radius: 32px;
    background: #07111f;
    text-align: center;
    color: white;
}

.final-cta h2 {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 28px auto 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.final-cta p {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.cta-icon {
    position: relative;
    z-index: 2;
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 16px;
    background: #f3c65b;
    color: #07111f;
    font-size: 25px;
}

.cta-decoration-one {
    position: absolute;
    width: 320px;
    height: 320px;
    top: -150px;
    right: -100px;
    border-radius: 50%;
    background: rgba(243, 198, 91, 0.08);
    filter: blur(40px);
}

.cta-decoration-two {
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: -180px;
    left: -120px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    filter: blur(45px);
}

.footer-link {
    display: block;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

/* =========================================================
   FLOATING WHATSAPP & ANIMATIONS
========================================================= */

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: white;
    font-size: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
    transform: scale(1.12);
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet / móvil grande: el bloque de tarjetas de servicio deja de
   "flotar" sobre el hero (eso solo tiene sentido con 3 columnas de
   desktop) y pasa a fluir normal, así que quitamos la altura fija
   gigante que dejaba el hueco vacío debajo de la imagen. */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(5, 15, 28, 0.96) 0%, rgba(5, 15, 28, 0.88) 45%, rgba(5, 15, 28, 0.78) 100%);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 16px;
    }

    .floating-whatsapp {
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 500px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.65rem;
    }

    .hero-badge {
        font-size: 11px;
    }

    .final-cta {
        padding: 50px 22px;
    }
}

/* =========================================================
   ANIMACIONES ÉPICAS (SCROLL REVEAL & HOVERS)
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
    filter: blur(4px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Transición ultra-suave para tarjetas al pasar el cursor */
.service-card,
.testimonial-card,
.hero-service,
.location-card {
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card:hover,
.testimonial-card:hover,
.location-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
}