:root {
    --navy: #0d0d0d;
    --gold: #FF4B1F;
    --gold-dark: #D8380A;
    --dark: #0d0d0d;
    --light: #f7f4ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Barlow', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding-top: 102px;
}

h1, h2, h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13,13,13,0.97);
    border-bottom: 1px solid rgba(255,75,31,0.25);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 5%;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.92rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 70px;
    width: auto;
    filter: invert(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.brand-location {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 5px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 3px;
    background: rgba(255,255,255,0.06);
}

.lang-btn {
    border: none;
    background: transparent;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.25s;
}

.lang-btn.active {
    background: var(--gold);
    color: #fff;
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--gold);
    color: white;
    font-size: 1.35rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 102px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 140px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.65)),
        url("images/hero.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-glow-scrim {
    position: absolute;
    top: 0;
    left: 50%;
    width: 900px;
    max-width: 140vw;
    height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(0,0,0,0.65), transparent 72%);
}

.hero-glow-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 190px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0.35;
}

.hero-glow-core {
    position: absolute;
    top: 20px;
    width: 340px;
    height: 140px;
    background: radial-gradient(ellipse closest-side, #fff2da, var(--gold) 70%, transparent 100%);
    opacity: 0;
    filter: blur(55px);
    border-radius: 50%;
    transition: opacity 0.9s ease 0.15s;
}

.hero-cone {
    position: absolute;
    top: 92px;
    left: 50%;
    width: 70px;
    height: 40px;
    margin-left: -35px;
    background: linear-gradient(to bottom, #ffcb9a, var(--gold) 35%, transparent 85%);
    opacity: 0;
    filter: blur(16px);
    transform-origin: top center;
    transition: height 0.9s ease 0.3s, opacity 0.6s ease 0.3s;
}

.hero-cone-left {
    transform: rotate(-24deg);
}

.hero-cone-right {
    transform: rotate(24deg);
}

.hero.lamp-lit .hero-glow-core {
    opacity: 0.65;
}

.hero.lamp-lit .hero-cone {
    height: 260px;
    opacity: 0.7;
}

@media (max-width: 700px) {
    .hero.lamp-lit .hero-cone {
        height: 170px;
    }
}

@media (max-width: 420px) {
    .whatsapp-float {
        padding: 14px;
        border-radius: 50%;
    }

    .whatsapp-float-label {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin-top: 40px;
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (max-width: 1020px) and (min-width: 901px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero-title-accent,
.hero-title-base {
    display: block;
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.hero-title-accent {
    color: var(--gold);
}

.hero-title-base {
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background: var(--gold);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-icon {
    flex-shrink: 0;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--gold-dark);
}

.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary:hover {
    background: rgba(255,255,255,0.1);
}

section {
    padding: 90px 10%;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
    font-size: 2.5rem;
}

.section-intro {
    max-width: 750px;
    margin: -20px auto 40px auto;
    text-align: center;
    font-size: 1.05rem;
}

.about {
    background: var(--light);
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-photo {
    flex: 0 0 300px;
}

.about-photo img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.about-photo img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 22px 50px rgba(0,0,0,0.28);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        flex: 0 0 auto;
        max-width: 260px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.faq-section {
    background: var(--light);
}

.packages {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 320px;
    padding: 35px;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    background: white;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.25rem;
}

.plan-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 6px;
}

.card h4 {
    color: var(--gold);
    font-size: 2.4rem;
    margin: 20px 0 4px 0;
}

.card h4 .per {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    font-family: 'Barlow', Arial, sans-serif;
}

.alt-price {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 18px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 0 0 14px 0;
}

.plan-features li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 0.92rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.gym-note {
    font-size: 0.78rem;
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
}

.card .btn {
    margin-top: auto;
}

.featured {
    border: 3px solid var(--gold);
}

.transformations-section {
    background: var(--light);
}

.transformations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.transformation-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.transformation-card img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.transformation-card img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-container details {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.faq-container summary {
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
}

.faq-container p {
    margin-top: 12px;
    color: #444;
}

#contacto {
    text-align: center;
}

#contacto p {
    margin: 12px 0;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.email-btn {
    background: var(--dark);
    color: white;
}

.email-btn:hover {
    background: #2a2a2a;
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 25px;
}

.demo-notice {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: white;
    padding: 15px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(255,75,31,0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-icon {
    flex-shrink: 0;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    background: var(--gold-dark);
    box-shadow: 0 12px 30px rgba(255,75,31,0.5);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    color: white;
    font-size: 45px;
    cursor: pointer;
    z-index: 100000;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 45px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    transition: 0.3s;
}

.lightbox-arrow:hover {
    background: rgba(107,79,143,0.85);
    color: #fff;
}

.lightbox-prev {
    left: 35px;
}

.lightbox-next {
    right: 35px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Additional animations ===== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.15s;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.65s;
}

@keyframes logoPop {
    from { opacity: 0; transform: scale(0.75); }
    to   { opacity: 1; transform: scale(1); }
}

.logo img {
    animation: logoPop 0.7s ease;
}

.nav-links a {
    position: relative;
}

@media (min-width: 1181px) {
    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: width 0.3s ease;
    }

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

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 75, 31, 0.45); }
    50%      { box-shadow: 0 0 0 12px rgba(255, 75, 31, 0); }
}

.hero-buttons .btn:not(.secondary) {
    animation: pulseRing 2.6s ease-in-out infinite;
}

.whatsapp-float {
    animation: pulseRing 2.6s ease-in-out infinite;
}

@keyframes featuredGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); }
    50%      { box-shadow: 0 10px 32px rgba(255, 75, 31, 0.35); }
}

.featured {
    animation: featuredGlow 3.2s ease-in-out infinite;
}

section h2 {
    position: relative;
    padding-bottom: 16px;
}

section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.6s ease 0.15s;
}

section h2.visible::after {
    width: 70px;
}

.char-reveal .word {
    display: inline-block;
}

.char-reveal .char {
    display: inline-block;
    opacity: 0;
    transform: translateX(28px) skewX(15deg);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

section h2.visible .char {
    opacity: 1;
    transform: translateX(0) skewX(0);
}

.line-reveal {
    overflow: hidden;
}

.lr-line {
    display: block;
    overflow: hidden;
}

.lr-line-inner {
    display: block;
    transform: translateY(100%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.line-reveal.visible .lr-line-inner {
    transform: translateY(0);
}

.faq-container details {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-container details:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

/* Staggered cascade for grid reveals */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }

.packages .card:nth-child(1) { transition-delay: 0s; }
.packages .card:nth-child(2) { transition-delay: 0.15s; }
.packages .card:nth-child(3) { transition-delay: 0.3s; }

.transformations-grid .transformation-card:nth-child(1) { transition-delay: 0s; }
.transformations-grid .transformation-card:nth-child(2) { transition-delay: 0.12s; }
.transformations-grid .transformation-card:nth-child(3) { transition-delay: 0.24s; }
.transformations-grid .transformation-card:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-content p,
    .hero-buttons,
    .logo img,
    .hero-buttons .btn:not(.secondary),
    .whatsapp-float,
    .featured {
        animation: none !important;
    }

    .reveal-on-scroll {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-glow-core,
    .hero-cone {
        transition: none !important;
    }

    .char-reveal .char {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .lr-line-inner {
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 1180px) {
    body {
        padding-top: 88px;
    }

    html {
        scroll-padding-top: 95px;
    }

    nav {
        grid-template-columns: auto auto;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        justify-content: flex-end;
    }

    .menu-toggle {
        display: inline-block;
    }
}

/* ===== Mobile full-screen menu (unroll reveal) ===== */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__bg {
    position: absolute;
    inset: 0;
}

.mobile-menu__bg-side {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.mobile-menu__bg-side--left {
    left: 0;
}

.mobile-menu__bg-side--right {
    right: 0;
}

.mobile-menu__bg-box {
    position: absolute;
    inset: 0;
    background: var(--dark);
    will-change: transform;
}

.mobile-menu__bg-box--left {
    transform-origin: 100% 50%;
    transform: rotate(180deg) scale(2);
}

.mobile-menu__bg-box--right {
    transform-origin: 0% 50%;
    transform: rotate(-180deg) scale(2);
}

.mobile-menu__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.mobile-menu__link {
    color: var(--light);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu__link .line {
    transform: translateY(110%);
    will-change: transform;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
    color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu__bg-box,
    .mobile-menu__link .line {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 14px 5%;
    }

    .logo {
        gap: 10px;
    }

    .logo img {
        height: 54px;
        max-width: 120px;
        object-fit: contain;
    }

    .brand-name {
        font-size: 0.9rem;
        max-width: 130px;
        line-height: 1.15;
        letter-spacing: 0.8px;
    }

    .brand-location {
        font-size: 0.65rem;
    }

    .language-toggle {
        transform: scale(0.95);
        transform-origin: right center;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .hero {
        min-height: calc(85vh - 88px);
        padding: 90px 20px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    section {
        padding: 70px 7%;
    }

    section h2 {
        font-size: 2rem;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }

    .whatsapp-float {
        padding: 13px 18px;
        font-size: 0.85rem;
        bottom: 18px;
        right: 18px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 82vh;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 38px;
    }

    .lightbox-arrow {
        width: 48px;
        height: 48px;
        font-size: 32px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}