/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --midnight: #0D0D0D;
    --dark: #1A1A1A;
    --mid: #3A3A3A;
    --gray: #6B6B6B;
    --lt-gray: #B0B0B0;
    --off-white: #F0EDE8;
    --warm-white: #F7F5F2;
    --white: #FFFFFF;
    --red: #C0272D;
    --blue: #1B3A6B;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--midnight);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Mejora 6: focus-visible para accesibilidad */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible,
.service-card__cta:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(192,39,45,0.15);
}

.fab-whatsapp:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAV TOP STRIPE ========== */
.nav-stripe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    display: flex;
    z-index: 101;
}

.nav-stripe span:nth-child(1) { flex: 1; background: var(--red); }
.nav-stripe span:nth-child(2) { flex: 1; background: var(--white); }
.nav-stripe span:nth-child(3) { flex: 1; background: var(--blue); }

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 3px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s, border-color 0.3s;
}

.nav.nav--dark {
    background: rgba(13, 13, 13, 0.92);
    border-bottom-color: rgba(255,255,255,0.06);
}

.nav.nav--dark .nav__links a { color: var(--lt-gray); }
.nav.nav--dark .nav__links a:hover { color: var(--white); }
.nav.nav--dark .nav__toggle span { background: var(--off-white); }

.nav__logo {
    height: 136px;
    margin-right: -30px;
    margin-left: -30px;
    filter: brightness(0) saturate(100%);
    transition: filter 0.3s;
}

.nav.nav--dark .nav__logo {
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__brand-text {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--midnight);
    transition: color 0.3s;
    line-height: 1.15;
}

.nav__brand-text span {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--gray);
    transition: color 0.3s;
}

.nav.nav--dark .nav__brand-text { color: var(--white); }
.nav.nav--dark .nav__brand-text span { color: var(--lt-gray); }

.nav__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav__links a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--gray);
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav__links a:hover {
    color: var(--midnight);
    background: rgba(0,0,0,0.04);
}

/* Mejora 5: estilo para nav link activo */
.nav__links a.active {
    color: var(--midnight);
    background: rgba(0,0,0,0.06);
}

.nav.nav--dark .nav__links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav.nav--dark .nav__links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav__separator {
    width: 1px;
    height: 28px;
    background: rgba(0,0,0,0.1);
    margin: 0 8px;
    transition: background 0.3s;
}

.nav.nav--dark .nav__separator {
    background: rgba(255,255,255,0.12);
}

.nav__social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray);
    transition: all 0.2s;
}

.nav__social-link:hover {
    color: var(--midnight);
    background: rgba(0,0,0,0.04);
}

.nav.nav--dark .nav__social-link { color: var(--lt-gray); }
.nav.nav--dark .nav__social-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav__social-link svg { width: 18px; height: 18px; }


.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--midnight);
    transition: transform 0.3s, opacity 0.3s;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.55) 45%, rgba(13,13,13,0.15) 100%),
        linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 25%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--lt-gray);
    margin-bottom: 24px;
}

.hero__location::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--red);
}

/* Mejora 5: animacion cinematografica del hero title */
.hero__title {
    font-size: clamp(52px, 10vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 8px;
}

.hero__title-axel,
.hero__title-the,
.hero__title-barber {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroWordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title-axel { animation-delay: 0.2s; }
.hero__title-the { animation-delay: 0.45s; }
.hero__title-barber { animation-delay: 0.65s; }

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

.hero__title-the {
    font-size: 0.28em;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--lt-gray);
    line-height: 2.2;
}

.hero__desc {
    font-size: 17px;
    color: var(--lt-gray);
    max-width: 400px;
    margin: 24px 0 36px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Mejora 7: Indicador de scroll en hero */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lt-gray);
    opacity: 0.6;
    transition: opacity 0.3s;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll:hover { opacity: 1; }
.hero__scroll svg { width: 28px; height: 28px; }

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: all 0.25s;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #a8222a; transform: translateY(-1px); }

.btn--ghost {
    background: rgba(255,255,255,0.08);
    color: var(--off-white);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
}

.btn--outline-dark {
    background: transparent;
    color: var(--midnight);
    border: 1.5px solid var(--midnight);
}

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


/* ========== SECTION LABELS ========== */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--red);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* ========== SERVICIOS ========== */
.services {
    padding: 100px 0;
    background: var(--warm-white);
    color: var(--midnight);
}

.services__header { margin-bottom: 56px; }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    background: var(--warm-white);
    padding: 40px 32px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(0,0,0,0.08);
    border-top-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(192,39,45,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

/* Mejora 10: micro-interaccion en iconos */
.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-4deg);
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--red);
    transition: transform 0.3s;
}

.service-card:hover .service-card__icon svg {
    transform: scale(1.05);
}

.service-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--midnight);
}

.service-card__price {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--red);
    margin-top: 4px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    flex-grow: 1;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    border: 1.5px solid var(--red);
    border-radius: 6px;
    transition: all 0.25s;
    text-align: center;
}

.service-card__cta:hover {
    background: var(--red);
    color: var(--white);
}

/* ========== GALERÍA ========== */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
    color: var(--midnight);
}

.gallery-section .container { margin-bottom: 40px; }

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Mejora 7: skeleton placeholder mientras cargan las imagenes */
.gallery__item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    aspect-ratio: 3/4;
    background: linear-gradient(110deg, #e8e8e8 8%, #f5f5f5 18%, #e8e8e8 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery__item img[src] {
    animation: none;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__item:hover img { transform: scale(1.05); }


/* ========== SOBRE ========== */
.about {
    padding: 100px 0;
    background: var(--white);
    color: var(--midnight);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}

.about__quote {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 24px 0;
    padding-left: 20px;
    border-left: 3px solid var(--red);
    color: var(--midnight);
}

.about__body {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about__stats {
    display: flex;
    gap: 40px;
}

.stat {
    padding: 20px 24px;
    background: var(--warm-white);
    border-radius: 10px;
    border-left: 3px solid var(--blue);
}

.stat__number {
    font-size: 36px;
    font-weight: 900;
    color: var(--midnight);
    letter-spacing: -1px;
}

.stat__number span { color: var(--blue); }

.stat__label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.about__img-wrap {
    position: relative;
}

/* Fix: imagen de Sobre Axel menos alta — de 3/4 a 4/5 */
.about__img-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center calc(20% - 75px);
    border-radius: 10px;
    max-height: 520px;
}

.about__img-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--blue);
    border-radius: 10px;
    z-index: -1;
}

/* ========== TESTIMONIOS ========== */
.testimonials {
    padding: 80px 0;
    background: var(--warm-white);
    color: var(--midnight);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    overflow: visible;
}

.testimonial {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 32px;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--red);
    opacity: 0.08;
    pointer-events: none;
}

.testimonial:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.testimonial__stars {
    color: var(--red);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial__text {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial__author {
    font-size: 13px;
    font-weight: 700;
    color: var(--midnight);
}

.testimonial__detail {
    font-size: 12px;
    color: var(--lt-gray);
    margin-top: 2px;
}

/* ========== CTA ========== */
.cta-section {
    padding: 120px 24px;
    text-align: center;
    background: var(--midnight);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(192,39,45,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section .section-label { justify-content: center; }

.cta__title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--white);
}

.cta__sub {
    font-size: 16px;
    color: var(--lt-gray);
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
}

.footer__barber-stripe {
    height: 3px;
    display: flex;
}

.footer__barber-stripe span:nth-child(1) { flex: 1; background: var(--red); }
.footer__barber-stripe span:nth-child(2) { flex: 1; background: var(--white); }
.footer__barber-stripe span:nth-child(3) { flex: 1; background: var(--blue); }

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__logo { height: 128px; }
.footer__info { font-size: 13px; color: var(--gray); font-style: normal; }
.footer__info strong { color: var(--off-white); font-weight: 700; display: block; margin-bottom: 2px; }

.footer__links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-gray);
    transition: color 0.2s;
}

.footer__link:hover { color: var(--white); }
.footer__link svg { width: 16px; height: 16px; }

.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

/* ========== LIGHTBOX — Mejora 2: con navegacion ========== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(8px);
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox__close:hover { background: rgba(255,255,255,0.2); }

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 13px;
    font-weight: 600;
    color: var(--lt-gray);
    letter-spacing: 2px;
}

/* ========== INFO + FAQ ========== */
.info-section {
    padding: 80px 0;
    background: var(--white);
    color: var(--midnight);
}

.info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.info__detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--mid);
    line-height: 1.6;
}

.info__detail svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.info__detail strong {
    color: var(--midnight);
    font-weight: 700;
}

.faq { margin-top: 20px; }

.faq__item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 0;
}

.faq__question {
    font-size: 15px;
    font-weight: 700;
    color: var(--midnight);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--red);
    transition: transform 0.3s;
}

details[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    padding-right: 24px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .info__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ========== WHATSAPP FAB ========== */
.fab-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.fab-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.fab-whatsapp__tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--midnight);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-whatsapp__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--white);
}

.fab-whatsapp:hover .fab-whatsapp__tooltip {
    opacity: 1;
}

@media (max-width: 640px) {
    .fab-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .fab-whatsapp svg {
        width: 26px;
        height: 26px;
    }

    .fab-whatsapp__tooltip { display: none; }
}

/* ========== BOTTOM STICKY BAR (mobile) ========== */
.bottom-bar {
    display: none;
}

/* ========== CAROUSEL DOTS ========== */
.services__dots,
.gallery__dots,
.testimonials__dots {
    display: none;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lt-gray);
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: var(--red);
    transform: scale(1.25);
}


/* ========== ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .services__grid { grid-template-columns: 1fr; gap: 12px; }
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .about__img-wrap { order: 1; }
    .about__img-accent { display: none; }
    .testimonials__grid { grid-template-columns: 1fr; }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .nav__links {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        transform: translateY(-10px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    }

    .nav__links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav.nav--dark .nav__links {
        background: rgba(13, 13, 13, 0.98);
        border-bottom-color: rgba(255,255,255,0.06);
    }

    /* Mejora 5: Touch targets 44px minimo en nav links */
    .nav__links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 16px;
        font-size: 15px;
        border-radius: 8px;
    }

    .nav__links a:active {
        background: rgba(0,0,0,0.08);
    }

    .nav.nav--dark .nav__links a:active {
        background: rgba(255,255,255,0.12);
    }

    .nav__toggle { display: flex; }

    .nav__right { gap: 8px; }
    .nav__separator { display: none; }
    .nav__social { display: none; }

    .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Nav brand mas chico en mobile */
    .nav { padding: 0 16px; }
    .nav__logo { height: 80px; margin-right: -12px; margin-left: -24px; }
    .nav__brand { margin-left: -8px; }
    .nav__brand-text { font-size: 12px; }
    .nav__brand-text span { font-size: 7px; }

    /* Mejora 6: Hero - titulo mas chico, CTA above the fold */
    .hero__bg img { object-position: 28% 5%; }

    .hero__title {
        font-size: clamp(44px, 14vw, 70px);
        letter-spacing: -1px;
    }

    .hero__desc {
        font-size: 15px;
        margin: 16px 0 24px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero__scroll { bottom: 16px; }

    /* Servicios como carrusel horizontal */
    .services .container { padding: 0; }
    .services .services__header { padding: 0 24px; }

    .services__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        touch-action: auto;
        gap: 12px;
        padding: 12px 20px;
        scrollbar-width: none;
    }

    .services__grid::-webkit-scrollbar { display: none; }

    .service-card {
        flex: 0 0 80vw;
        scroll-snap-align: center;
        border-top-color: var(--blue);
    }

    .services__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    /* Mejora 3: Galeria como carrusel horizontal */
    .gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 0 20px;
        scrollbar-width: none;
    }

    .gallery::-webkit-scrollbar { display: none; }

    .gallery__item {
        flex: 0 0 75vw;
        scroll-snap-align: center;
        aspect-ratio: 3/4;
    }

    .gallery__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 20px;
    }

    /* Testimonios como carrusel */
    .testimonials .container {
        padding: 0;
    }

    .testimonials .container > .section-label,
    .testimonials .container > .section-title {
        padding: 0 24px;
    }

    .testimonials__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        touch-action: auto;
        gap: 12px;
        padding: 12px 20px;
        scrollbar-width: none;
        margin-top: 32px;
    }

    .testimonials__grid::-webkit-scrollbar { display: none; }

    .testimonial {
        flex: 0 0 85vw;
        scroll-snap-align: center;
    }

    .testimonials__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    /* Sobre mi - limpio en mobile */
    .about__grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .about__img-wrap {
        display: none;
    }

    .about__quote {
        font-size: 17px;
        background: var(--warm-white);
        padding: 20px 20px 20px 24px;
        border-left: 4px solid var(--red);
        border-radius: 0 10px 10px 0;
        margin: 20px 0;
    }

    .about__stats { gap: 16px; }

    .stat {
        padding: 16px 18px;
        flex: 1;
    }

    .stat__number { font-size: 28px; }

    /* Info mobile — compacto, sin FAQ */
    .info-section { padding: 64px 0; }

    .info__block:last-child {
        display: none;
    }

    .info__block:first-child .section-title {
        display: none;
    }

    .info__detail {
        background: var(--warm-white);
        padding: 16px 18px;
        border-radius: 10px;
        margin-top: 12px;
    }

    /* Mejora 12: Footer compacto */
    .footer__logo { height: 64px; }
    .footer__inner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .footer__brand { flex-direction: column; gap: 12px; }
    .footer__links { flex-direction: column; gap: 12px; }
    .footer__bottom { flex-direction: column; gap: 4px; text-align: center; }

    .cta-section { padding: 80px 24px; }

    /* Mejora 1: Bottom sticky bar en vez de FAB */
    .fab-whatsapp { display: none; }

    .bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 90;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0,0,0,0.08);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .bottom-bar.visible {
        transform: translateY(0);
    }

    .bottom-bar__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 24px;
        background: #25D366;
        color: var(--white);
        font-family: inherit;
        font-size: 15px;
        font-weight: 700;
        border-radius: 10px;
        transition: background 0.2s;
        min-height: 48px;
    }

    .bottom-bar__btn:active {
        background: #1da851;
    }

    .bottom-bar__btn svg {
        width: 20px;
        height: 20px;
    }

    /* Padding inferior para que el contenido no quede tapado por bottom bar */
    .footer { padding-bottom: 72px; }

    /* Secciones con menos padding vertical en mobile */
    .services { padding: 64px 0; }
    .gallery-section { padding: 64px 0; }
    .about { padding: 64px 0; }
    .testimonials { padding: 64px 0; }
    .info-section { padding: 64px 0; }

    /* Lightbox: touch targets 44px */
    .lightbox__nav {
        width: 44px;
        height: 44px;
    }
    .lightbox__nav svg { width: 22px; height: 22px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .lightbox__close {
        width: 44px;
        height: 44px;
    }
}
