/* ============================================
   MONTSE TUDELA - Components
   Premium / High-End UI System
   ============================================ */

/* ══════════════════════════════════════════
   LIQUID GLASS NAVIGATION
   Inspired by Apple Vision Pro
   ══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--glass-bg-scrolled);
    box-shadow:
        var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding-inline: var(--space-3);
}

@media (min-width: 768px) {
    .navbar__inner {
        height: 60px;
        padding-inline: var(--space-4);
    }
}

.navbar__logo {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--neutral-900);
    text-decoration: none;
    line-height: 1.15;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
    opacity: 0.8;
    color: var(--neutral-900);
}

.navbar__logo span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: var(--fw-normal);
    color: var(--neutral-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hamburger */
.navbar__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.navbar__toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--neutral-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* Mobile Menu — Glass */
.navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100dvh;
    background: var(--glass-bg-scrolled);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: calc(80px + var(--space-4)) var(--space-4) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-2xl);
    border-left: 1px solid var(--glass-border);
    z-index: 105;
}

.navbar__menu.open {
    right: 0;
}

.navbar__link {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--neutral-700);
    text-decoration: none;
    padding: 0.75rem var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.navbar__link:hover {
    color: var(--neutral-900);
    background: rgba(0, 0, 0, 0.04);
}

.navbar__link.active {
    color: var(--primary-700);
    font-weight: var(--fw-semibold);
    background: var(--primary-50);
}

.navbar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 24, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.navbar__overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.navbar__cta {
    margin-top: var(--space-2);
}

/* Desktop Nav */
@media (min-width: 768px) {
    .navbar__toggle {
        display: none;
    }

    .navbar__menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        box-shadow: none;
        border: none;
    }

    .navbar__link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: var(--radius-full);
    }

    .navbar__cta {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

/* ══════════════════════════════════════════
   BUTTONS — Premium
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: var(--text-sm);
    line-height: 1;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--neutral-900);
    color: white;
    border-color: var(--neutral-900);
}

.btn--primary:hover {
    background: var(--neutral-800);
    border-color: var(--neutral-800);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(26, 25, 24, 0.4), var(--shadow-lg);
    color: white;
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: transparent;
    color: var(--neutral-800);
    border-color: var(--neutral-300);
}

.btn--secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-500);
    color: var(--neutral-900);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--primary-700);
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
}

.btn--ghost:hover {
    background: var(--primary-50);
    color: var(--primary-800);
    text-shadow: 0 0 8px rgba(107, 158, 110, 0.4);
}

.btn--sm {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
}

.btn--lg {
    font-size: var(--text-base);
    padding: 0.875rem 2rem;
}

/* ══════════════════════════════════════════
   CARDS — Premium
   ══════════════════════════════════════════ */
.card {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(107, 158, 110, 0.15), var(--shadow-lg);
    border-color: var(--primary-200);
}

.card--bordered {
    border: 1px solid var(--neutral-200);
    box-shadow: none;
}

.card--bordered:hover {
    border-color: var(--primary-300);
    box-shadow: 0 0 15px rgba(107, 158, 110, 0.2), var(--shadow-md);
}

.card__icon {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    color: var(--primary-600);
    transition: all var(--transition-base);
}

.card:hover .card__icon {
    background: var(--primary-100);
    transform: scale(1.05);
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
    color: var(--neutral-900);
}

.card__text {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
}

.card__meta {
    margin-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.card__meta-item {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    font-weight: var(--fw-medium);
}

/* ══════════════════════════════════════════
   STEPS — Premium Process
   ══════════════════════════════════════════ */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: var(--space-4);
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--neutral-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    margin: 0 auto var(--space-3);
    transition: all var(--transition-base);
}

.step:hover .step__number {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.step__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
}

.step__text {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    max-width: 300px;
    margin-inline: auto;
}

/* ══════════════════════════════════════════
   TESTIMONIALS — Premium
   ══════════════════════════════════════════ */
.testimonials-track {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
}

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

.testimonial {
    flex: 0 0 85%;
    scroll-snap-align: start;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

@media (min-width: 640px) {
    .testimonial {
        flex: 0 0 calc(50% - var(--space-2));
    }
}

@media (min-width: 1024px) {
    .testimonial {
        flex: 0 0 calc(33.333% - var(--space-2));
    }
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.testimonial__stars {
    color: var(--accent-500, #C47A4A);
    font-size: var(--text-sm);
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
}

.testimonial__text {
    font-size: var(--text-sm);
    color: var(--neutral-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-100);
    color: var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.testimonial__name {
    font-weight: var(--fw-semibold);
    font-size: var(--text-sm);
    color: var(--neutral-900);
}

.testimonial__service {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-3);
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--neutral-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.testimonials-dot.active {
    background: var(--neutral-900);
    width: 24px;
}

/* ══════════════════════════════════════════
   TRUST — Premium
   ══════════════════════════════════════════ */
.trust-item {
    text-align: center;
    padding: var(--space-3);
    transition: all var(--transition-base);
}

.trust-item:hover {
    transform: translateY(-4px);
}

.trust-item__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--neutral-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
    transition: all var(--transition-base);
}

.trust-item:hover .trust-item__icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.trust-item__title {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    margin-bottom: 0.375rem;
}

.trust-item__text {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/* ══════════════════════════════════════════
   PRICING TABLE — Premium
   ══════════════════════════════════════════ */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.pricing-table thead {
    background: var(--neutral-900);
    color: white;
}

.pricing-table th {
    padding: 1rem;
    font-weight: var(--fw-semibold);
    text-align: left;
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-700);
}

.pricing-table tbody tr {
    background: var(--neutral-50);
    transition: background var(--transition-fast);
}

.pricing-table tbody tr:hover {
    background: var(--primary-50);
}

.pricing-table .price {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-lg);
    color: var(--neutral-900);
}

/* ══════════════════════════════════════════
   FAQ — Premium
   ══════════════════════════════════════════ */
.faq-item {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2);
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--neutral-50);
}

.faq-item:hover {
    border-color: var(--neutral-300);
}

.faq-item.open {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--neutral-900);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition-fast);
}

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

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--neutral-500);
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.faq-icon::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer__inner {
    padding: 0 var(--space-3) var(--space-3);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════════
   INFO BOX — Premium
   ══════════════════════════════════════════ */
.info-box {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    font-size: var(--text-sm);
    color: var(--neutral-700);
}

.info-box--warning {
    background: var(--accent-50, #FDF5F0);
    border-color: var(--accent-200, #F0C9AD);
}

/* ══════════════════════════════════════════
   FOOTER — Premium
   ══════════════════════════════════════════ */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding-block: var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer__brand {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: white;
    margin-bottom: var(--space-1);
}

.footer__desc {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    line-height: var(--leading-relaxed);
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-500);
    margin-bottom: var(--space-2);
}

.footer__link {
    display: block;
    font-size: var(--text-sm);
    color: var(--neutral-400);
    text-decoration: none;
    padding-block: 0.25rem;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--neutral-800);
    text-align: center;
}

.footer__bottom p {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

/* ══════════════════════════════════════════
   LUCIDE ICON CONTAINERS
   ══════════════════════════════════════════ */
.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.icon-wrapper--primary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.icon-wrapper--accent {
    background: var(--accent-50, #FDF5F0);
    color: var(--accent-600, #A6623A);
}

.icon-wrapper--dark {
    background: var(--neutral-900);
    color: white;
}

.icon-wrapper--lg {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-2xl);
}

/* ══════════════════════════════════════════
   COOKIE BANNER — Glass
   ══════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 480px;
    background: var(--glass-bg-scrolled);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-3);
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-slow) ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner__text {
    font-size: var(--text-sm);
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

.cookie-banner__text a {
    color: var(--primary-700);
    text-decoration: underline;
}

.cookie-banner__options {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.cookie-banner__option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--text-sm);
    line-height: 1.4;
}

.cookie-banner__option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--primary-500);
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-banner__option input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-banner__option em {
    font-style: italic;
    color: var(--neutral-400);
    font-size: var(--text-xs);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.cookie-banner__save {
    margin-top: var(--space-1);
}

.cookie-banner__btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
    min-height: 38px;
}

.cookie-banner__btn--primary {
    background: var(--neutral-900);
    color: white;
}

.cookie-banner__btn--primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cookie-banner__btn--secondary {
    background: var(--neutral-50);
    color: var(--neutral-700);
    border-color: var(--neutral-300);
}

.cookie-banner__btn--secondary:hover {
    background: var(--neutral-100);
}

.cookie-banner__btn--ghost {
    background: transparent;
    color: var(--neutral-500);
}

.cookie-banner__btn--ghost:hover {
    color: var(--neutral-900);
    background: var(--neutral-50);
}

/* ══════════════════════════════════════════
   PREMIUM IMAGE ENHANCEMENTS
   ══════════════════════════════════════════ */
.hero__image img {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero__image img:hover {
    transform: scale(1.02);
}

.grid img {
    transition: all var(--transition-base);
}

.grid img:hover {
    transform: scale(1.03);
}