/* ============================================
   QualityRent — Apple-esque Dark Mode Landing
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --bg-card: #0a0a0a;
    --bg-card-hover: #111111;
    --border: rgba(255, 255, 255, 0.06);
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --text-dim: #6e6e73;
    --green: #30d158;
    --green-glow: rgba(48, 209, 88, 0.3);
    --orange: #ff6b2b;
    --orange-glow: rgba(255, 107, 43, 0.3);
    --gradient: linear-gradient(135deg, var(--green), #00c7be);
    --gradient-orange: linear-gradient(135deg, var(--orange), #ff9f0a);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img, video {
    max-width: 100%;
    display: block;
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.nav.scrolled {
    padding: 8px 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(5, 5, 5, 0.72);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.nav.scrolled .nav-logo-img {
    height: 56px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: var(--transition);
}

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

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-slow);
}

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

.mobile-menu {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.mobile-overlay.active .mobile-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay.active .mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.active .mobile-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-overlay.active .mobile-menu li:nth-child(5) { transition-delay: 0.3s; }

.mobile-link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    padding: 16px 0;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--green);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(48, 209, 88, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.4s forwards;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.8s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 0 var(--orange-glow);
}

.btn-primary:hover {
    background: #ff7d44;
    box-shadow: 0 0 30px 8px var(--orange-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollPulse 2s infinite;
}

/* ---------- Sections General ---------- */
.section {
    padding: 140px 0;
    position: relative;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 64px;
}

/* ---------- About Section (used in nosotros.html) ---------- */
.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(48, 209, 88, 0.2);
    transform: translateY(-4px);
}

.value-icon {
    color: var(--green);
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(48, 209, 88, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(48, 209, 88, 0.15);
    transform: translateY(-4px);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
}

.bento-highlight {
    border-color: rgba(255, 107, 43, 0.15);
}

.bento-highlight::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 43, 0.3), transparent);
}

.bento-highlight:hover {
    border-color: rgba(255, 107, 43, 0.3);
}

.bento-icon {
    color: var(--green);
    margin-bottom: 20px;
}

.bento-highlight .bento-icon {
    color: var(--orange);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bento-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 980px;
}

.bento-tag-orange {
    color: var(--orange);
    background: rgba(255, 107, 43, 0.1);
    border-color: rgba(255, 107, 43, 0.2);
}

/* ---------- Results / Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Testimonials — Carrusel infinito */
.testimonials {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    scrollbar-width: none;
}

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

.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollReviews 30s linear infinite;
}

.testimonials-track:hover,
.testimonials-track.paused {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex: 0 0 360px;
    padding: 28px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 280px;
    }
}

.testimonial-stars {
    color: var(--orange);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--green);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-dim);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-cards-centered {
    max-width: 600px;
    margin: 0 auto;
}

.contact-address {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(48, 209, 88, 0.2);
    transform: translateY(-2px);
}

.contact-card-link {
    cursor: pointer;
}

.contact-icon {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin: 0 auto;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-copy p + p {
    margin-top: 4px;
}

/* ---------- Floating CTA ---------- */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--orange);
    color: #fff;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 24px var(--orange-glow);
    transition: var(--transition);
    transform: translateY(100px);
    opacity: 0;
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta:hover {
    box-shadow: 0 8px 40px var(--orange-glow);
    transform: scale(1.05);
}

.floating-cta.visible:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ---------- Reveal Animations ---------- */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ---------- Page Hero (for subpages) ---------- */
.page-hero {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero .hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(48, 209, 88, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.page-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Nosotros Page ---------- */
.story-section {
    padding: 100px 0;
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 100px;
}

.story-block:last-child {
    margin-bottom: 0;
}

.story-block.reverse {
    direction: rtl;
}

.story-block.reverse > * {
    direction: ltr;
}

.story-img-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 4/3;
}

.story-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-img-wrapper:hover img {
    transform: scale(1.03);
}

.story-text h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.story-text .story-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.story-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Resultados Page: Before/After Slider ---------- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

/* 5º item solo: centrado */
.comparison-grid .comparison-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.comparison-item {
    position: relative;
}

.comparison-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: col-resize;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    touch-action: none;
}

.comparison-video-slider {
    aspect-ratio: 9/16;
    max-height: 70vh;
}

.comparison-img-slider {
    aspect-ratio: 3/4;
    max-height: 65vh;
}

.comparison-slider img,
.comparison-slider video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.comparison-slider .after-img,
.comparison-slider .after-video {
    clip-path: inset(0 50% 0 0);
}

.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    pointer-events: auto;
    touch-action: none;
    cursor: ew-resize;
}

/* Hitbox extendida horizontalmente para facilitar el toque en móvil */
.comparison-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.comparison-handle svg {
    color: #050505;
}

.comparison-labels {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 4;
    pointer-events: none;
}

.comparison-label {
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.comparison-label.before {
    background: rgba(255, 107, 43, 0.9);
    color: #fff;
}

.comparison-label.after {
    background: rgba(48, 209, 88, 0.9);
    color: #fff;
}

.results-placeholder {
    text-align: center;
    padding: 60px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-top: 40px;
}

.results-placeholder p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Hero with Background Image ---------- */
.hero-with-bg {
    position: relative;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(5, 5, 5, 0.35) 0%,
        rgba(5, 5, 5, 0.55) 50%,
        rgba(5, 5, 5, 0.88) 100%);
    z-index: 1;
}

.hero-with-bg .hero-subtitle {
    color: rgba(245, 245, 247, 0.9);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero-with-bg .hero-content {
    z-index: 2;
}

.hero-with-bg .hero-scroll-indicator {
    z-index: 2;
}

.hero-title-giant {
    font-size: clamp(3.5rem, 12vw, 8rem) !important;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1 !important;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.hero-alert-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 107, 43, 0.15);
    border: 1px solid rgba(255, 107, 43, 0.4);
    border-radius: 980px;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-alert-banner strong {
    color: #fff;
}

/* ---------- Video Slider ---------- */
.video-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-slide {
    min-width: 100%;
    padding: 0 8px;
}

.video-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    aspect-ratio: 9/16;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.video-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.video-label-before {
    background: rgba(255, 107, 43, 0.9);
    color: #fff;
}

.video-label-after {
    background: rgba(48, 209, 88, 0.9);
    color: #fff;
}

/* Slider Controls (shared between video and gallery) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.slider-arrow-left {
    left: 12px;
}

.slider-arrow-right {
    right: 12px;
}

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

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    background: var(--green);
    transform: scale(1.3);
}

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    padding: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(48, 209, 88, 0.2);
    transform: translateY(-4px);
}

.pricing-card-highlight {
    border-color: rgba(255, 107, 43, 0.2);
}

.pricing-card-highlight:hover {
    border-color: rgba(255, 107, 43, 0.4);
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--green);
    flex-wrap: wrap;
}

.pricing-card-highlight .pricing-header {
    color: var(--orange);
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.pricing-list {
    list-style: none;
    margin-bottom: 16px;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-amount {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

.pricing-disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
}

/* ---------- Treatments ---------- */
.treatments-section {
    padding: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.treatments-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

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

/* Fila 1: 4 items, cada uno ocupa 2 de 8 columnas */
.treatments-grid .treatment-item:nth-child(1) { grid-column: 1 / span 2; }
.treatments-grid .treatment-item:nth-child(2) { grid-column: 3 / span 2; }
.treatments-grid .treatment-item:nth-child(3) { grid-column: 5 / span 2; }
.treatments-grid .treatment-item:nth-child(4) { grid-column: 7 / span 2; }

/* Fila 2: 3 items centrados */
.treatments-grid .treatment-item:nth-child(5) { grid-column: 2 / span 2; }
.treatments-grid .treatment-item:nth-child(6) { grid-column: 4 / span 2; }
.treatments-grid .treatment-item:nth-child(7) { grid-column: 6 / span 2; }

.treatment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-secondary);
}

.treatment-item svg {
    color: var(--green);
}

.treatment-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.treatment-item:hover {
    background: rgba(48, 209, 88, 0.05);
    border-color: rgba(48, 209, 88, 0.2);
    color: var(--text);
}

.treatment-item-featured {
    border-color: rgba(255, 107, 43, 0.3);
    background: rgba(255, 107, 43, 0.05);
}

.treatment-item-featured svg {
    color: var(--orange);
}

.treatment-item-featured:hover {
    background: rgba(255, 107, 43, 0.1);
    border-color: rgba(255, 107, 43, 0.4);
}

.treatment-detail {
    font-size: 0.75rem !important;
    color: var(--orange);
    font-weight: 600 !important;
}

/* ---------- Gallery Slider ---------- */
.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    min-width: 100%;
    padding: 0 8px;
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.gallery-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 500;
}

/* ---------- Footer Logistics ---------- */
.footer-logistics {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 28px;
    background: rgba(48, 209, 88, 0.05);
    border: 1px solid rgba(48, 209, 88, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    max-width: 500px;
}

.footer-logistics-icon {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-logistics-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-logistics p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-logistics-disclaimer {
    font-style: italic;
    color: var(--text-dim) !important;
    font-size: 0.8rem !important;
    margin-top: 6px;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- Responsive ---------- */

/* --- Tablet grande / laptop pequeño --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    /* Bento: 2 cols en tablet */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats: 2x2 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Story blocks */
    .story-block {
        gap: 32px;
    }

    /* Tarifas: 1 col */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Tratamientos: 3 cols en tablet grande */
    .treatments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .treatments-grid .treatment-item:nth-child(n) {
        grid-column: auto;
    }

    /* Comparadores: 2 cols (ya definido arriba, se mantiene) */
    .comparison-grid {
        max-width: 100%;
    }

    /* Footer */
    .footer-content {
        gap: 32px;
    }
}

/* --- Tablet --- */
@media (max-width: 768px) {
    /* ---- Nav ---- */
    .nav-menu {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-logo-img {
        height: 60px;
    }
    .nav.scrolled .nav-logo-img {
        height: 48px;
    }

    /* ---- Layout base ---- */
    .container {
        padding: 0 20px;
    }
    .section {
        padding: 72px 0;
    }
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
        margin-bottom: 40px;
    }
    .section-eyebrow {
        font-size: 0.7rem;
    }

    /* ---- Hero ---- */
    .hero {
        padding: 110px 20px 60px;
        min-height: 100svh;
    }
    .hero-title-giant {
        font-size: clamp(2rem, 11vw, 6rem);
        letter-spacing: -0.02em;
    }
    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
    .hero-alert-banner {
        font-size: 0.75rem;
        padding: 10px 16px;
        gap: 8px;
        text-align: center;
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    .hero-alert-banner svg {
        flex-shrink: 0;
    }
    .hero-subtitle {
        text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }
    .hero-scroll-indicator {
        bottom: 20px;
    }
    .scroll-line {
        height: 36px;
    }

    /* ---- Bento ---- */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bento-grid .bento-card:nth-child(n) {
        grid-column: auto;
    }
    .bento-card {
        padding: 24px;
    }

    /* ---- Stats ---- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 24px 12px;
    }
    .stat-number {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    /* ---- Galería ---- */
    .gallery-slide img {
        border-radius: var(--radius-sm);
    }
    .gallery-caption {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    /* ---- Testimonios ---- */
    .testimonial-card {
        padding: 24px 20px;
    }

    /* ---- Reviews ---- */
    .reviews-avg {
        padding: 20px 28px;
    }
    .reviews-avg-number {
        font-size: 3rem;
    }
    .review-form-card {
        padding: 24px 20px;
    }
    .social-proof-banner {
        padding: 24px 32px;
    }

    /* ---- Tarifas ---- */
    .pricing-card {
        padding: 24px;
    }
    .treatments-section {
        padding: 24px;
    }
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .treatments-grid .treatment-item:nth-child(n) {
        grid-column: auto;
    }

    /* ---- FAQ ---- */
    .faq-question {
        font-size: 0.95rem;
        padding: 20px 0;
    }

    /* ---- Contacto ---- */
    .contact-cards-centered {
        gap: 16px;
    }
    .contact-card {
        padding: 20px;
        gap: 14px;
    }
    .contact-info {
        gap: 12px;
    }

    /* ---- Nosotros ---- */
    .page-hero {
        padding: 110px 20px 56px;
        text-align: center;
    }
    .page-hero-title {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }
    .page-hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }
    .story-section {
        padding: 56px 0;
    }
    .story-block {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 56px;
    }
    .story-block.reverse {
        direction: ltr;
    }
    .story-img-wrapper {
        aspect-ratio: 4/3;
    }
    .story-text {
        padding: 0;
    }
    .story-label {
        font-size: 0.7rem;
    }
    .story-text h3 {
        font-size: 1.4rem;
    }
    .about-values {
        gap: 16px;
    }
    .value-card {
        padding: 24px;
    }

    /* ---- Resultados / Comparadores ---- */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 480px;
        margin: 0 auto;
    }
    .comparison-grid .comparison-item:last-child:nth-child(odd) {
        grid-column: 1;
        max-width: 100%;
    }
    .comparison-img-slider {
        aspect-ratio: 3/4;
        max-height: 60vh;
    }
    .comparison-handle {
        width: 52px;
        height: 52px;
    }
    .comparison-handle svg {
        width: 18px;
        height: 18px;
    }
    .comparison-label {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .comparison-item h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* ---- Footer ---- */
    .footer-content {
        gap: 28px;
    }
    .footer-logo-img {
        height: 48px;
    }
    .footer-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-links a {
        font-size: 0.8rem;
    }
    .footer-social {
        gap: 16px;
        justify-content: center;
    }

    /* ---- Floating CTA ---- */
    .floating-cta span {
        display: none;
    }
    .floating-cta {
        padding: 16px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
}

/* --- Móvil pequeño --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        padding: 90px 16px 56px;
    }
    .hero-title-giant {
        font-size: clamp(1.6rem, 9.5vw, 2.8rem);
        letter-spacing: -0.02em;
    }
    .hero-alert-banner {
        font-size: 0.7rem;
        padding: 8px 14px;
    }

    /* Stats: 2x2 compacto */
    .stats-grid {
        gap: 8px;
    }
    .stat-card {
        padding: 20px 8px;
        border-radius: var(--radius-sm);
    }
    .stat-number {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }
    .stat-label {
        font-size: 0.7rem;
    }

    /* Bento */
    .bento-card {
        padding: 20px;
    }
    .bento-icon {
        margin-bottom: 12px;
    }
    .bento-card h3 {
        font-size: 1rem;
    }
    .bento-card p {
        font-size: 0.85rem;
    }

    /* Treatments */
    .treatments-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .treatment-item {
        padding: 12px;
        font-size: 0.8rem;
    }

    /* Tarifas */
    .pricing-list li {
        flex-direction: column;
        gap: 4px;
    }
    .pricing-amount {
        font-size: 1rem;
    }

    /* Galería */
    .gallery-slider {
        border-radius: var(--radius-sm);
    }

    /* Story */
    .story-img-wrapper {
        aspect-ratio: 3/2;
    }
    .story-text h3 {
        font-size: 1.2rem;
    }
    .story-text p {
        font-size: 0.9rem;
    }

    /* Comparadores */
    .comparison-img-slider {
        aspect-ratio: 3/4;
        max-height: 55vh;
    }
    .comparison-grid {
        gap: 32px;
        max-width: 100%;
    }

    /* Testimonios */
    .testimonial-card p {
        font-size: 0.9rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.9rem;
    }
    .faq-answer p {
        font-size: 0.9rem;
    }

    /* Social proof */
    .social-proof-banner {
        padding: 20px 24px;
        width: 100%;
        text-align: center;
    }

    /* Mobile menu */
    .mobile-link {
        font-size: 1.5rem;
        padding: 10px 0;
    }

    /* Contact */
    .contact-card {
        padding: 16px;
        gap: 12px;
    }
    .contact-address {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-content {
        gap: 24px;
        text-align: center;
    }
    .footer-brand p {
        font-size: 0.85rem;
    }
    .footer-copy p {
        font-size: 0.75rem;
    }
    .footer-logistics {
        flex-direction: column;
        text-align: left;
    }
}

/* ---------- Social Proof Banner ---------- */
.social-proof-banner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.social-proof-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.social-proof-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- Reviews Section ---------- */
.reviews-summary {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-avg {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.reviews-avg-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.reviews-avg-stars {
    font-size: 1.5rem;
    color: var(--orange);
    letter-spacing: 4px;
}

.reviews-avg-count {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Review Form */
.review-form-section {
    margin-top: 48px;
}

.review-form-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.review-form-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.review-form-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.review-form-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.review-star {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px;
    line-height: 1;
}

.review-star:hover,
.review-star.active {
    color: var(--orange);
    transform: scale(1.2);
}

.review-star.hovered {
    color: var(--orange);
}

.review-btn {
    margin-top: 8px;
}

/* ---------- Footer Social Icons ---------- */
.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social-link:hover {
    background: rgba(48, 209, 88, 0.1);
    border-color: rgba(48, 209, 88, 0.3);
    color: var(--green);
    transform: translateY(-2px);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(48, 209, 88, 0.3);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
