/* ==========================================================================
   RENTACME v2 — Modern Industrial Design System
   ==========================================================================
   Palette:  Deep Navy (#0F172A) · Electric Blue (#3B82F6) · Soft Gray (#F8FAFC)
   Fonts:   Inter (Google Fonts)
   Strategy: Mobile-first · CSS Grid · Flexbox · CSS Custom Properties
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #0F172A;
    --color-primary-light: #1E293B;
    --color-accent: #3B82F6;
    --color-accent-hover: #2563EB;
    --color-accent-light: #60A5FA;
    
    --color-text: #1E293B;
    --color-text-secondary: #64748B;
    --color-text-muted: #94A3B8;
    --color-text-inverse: #F1F5F9;
    
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #0F172A;
    
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;
    
    --color-success: #10B981;
    --color-warning: #F59E0B;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Layout */
    --container-max: 1440px;
    --container-narrow: 768px;
    
    --header-height: 72px;
    --header-height-scrolled: 64px;
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 14px rgba(59, 130, 246, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-cookie: 400;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

ul, ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

::selection {
    background: var(--color-accent);
    color: white;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
}

p:last-child {
    margin-bottom: 0;
}

.text-lead {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.text-small {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--space-16);
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: white;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* Flex */
.flex {
    display: flex;
}

.flex--col {
    flex-direction: column;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--wrap {
    flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: height var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
    height: var(--header-height-scrolled);
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.22em;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-3xl);
    letter-spacing: -0.5px;
    color: var(--color-primary);
    text-decoration: none;
}

.logo img {
    height: 52px;
    width: auto;
}

/* Navigation */
.nav {
    display: none;
}

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

.nav__link {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    position: relative;
    padding-block: var(--space-2);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link--active {
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    z-index: calc(var(--z-sticky) + 10);
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-dropdown);
}

.nav-mobile.is-open {
    transform: translateX(0);
}

.nav-mobile__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.nav-mobile__link {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, white 100%);
    overflow: hidden;
    padding-block: var(--space-12);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__grid {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

.hero__text {
    max-width: 600px;
}

.hero__title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero__title-accent {
    color: var(--color-accent);
}

.hero__desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn--secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   8. CARDS
   ========================================================================== */

/* Card clickable wrapper */
.card-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-wrapper:hover {
    color: inherit;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-wrapper:hover .card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--color-bg-alt);
}

.card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-slow);
}

.card-wrapper:hover .card__image img,
.card:hover .card__image img {
    transform: scale(1.05);
}

.card__content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

.card__desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    flex: 1;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    margin-top: auto;
}

.card-wrapper .card__link {
    display: none; /* Hide link text when card is fully clickable */
}

.card__link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.card:hover .card__link::after,
.card-wrapper:hover .card__link::after {
    transform: translateX(4px);
}

/* ==========================================================================
   9. STATS BAR
   ========================================================================== */

.stats-bar {
    background: var(--color-primary);
    color: white;
    padding-block: var(--space-12);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stats-bar__value {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stats-bar__label {
    font-size: var(--font-size-base);
    color: var(--color-text-inverse);
    opacity: 0.9;
}

/* ==========================================================================
   10. FEATURES LIST
   ========================================================================== */

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.feature-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    margin-top: 2px;
}

.feature-item__content h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-1);
}

.feature-item__content p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.footer {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding-block: var(--space-16) var(--space-8);
}

.footer a {
    color: var(--color-text-inverse);
    opacity: 0.8;
}

.footer a:hover {
    color: var(--color-accent-light);
    opacity: 1;
}

.footer__grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 300px;
}

.footer__brand img {
    height: 40px;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
}

.footer__brand p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.footer__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: var(--font-size-sm);
}

.footer__contact p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.footer__contact strong {
    color: white;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
}

.footer__bottom p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   12. PAGE HEADER
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding-block: var(--space-16) var(--space-12);
    text-align: center;
}

.page-header__title {
    font-size: var(--font-size-4xl);
    color: white;
    margin-bottom: var(--space-4);
}

.page-header__desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-inverse);
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--color-accent-light);
}

.breadcrumb__separator {
    color: var(--color-text-muted);
}

.breadcrumb__current {
    color: var(--color-text-inverse);
}

/* ==========================================================================
   13. FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-label__required {
    color: var(--color-accent);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    margin-top: 2px;
}

.form-checkbox label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   14. TABLES
   ========================================================================== */

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    background: var(--color-bg-alt);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--color-bg-alt);
}

/* ==========================================================================
   15. SPECIFICATIONS CARD
   ========================================================================== */

.specs-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.specs-card__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.specs-card__list {
    display: grid;
    gap: var(--space-3);
}

.specs-card__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--space-2);
}

.specs-card__label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

.specs-card__value {
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

/* ==========================================================================
   16. GALLERY
   ========================================================================== */

.gallery {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, 1fr);
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* ==========================================================================
   17. CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
    padding-block: var(--space-16);
    text-align: center;
}

.cta-section__title {
    font-size: var(--font-size-3xl);
    color: white;
    margin-bottom: var(--space-4);
}

.cta-section__desc {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

.cta-section .btn--secondary {
    border-color: white;
    background: white;
    color: var(--color-accent);
}

.cta-section .btn--secondary:hover {
    background: transparent;
    color: white;
}

/* ==========================================================================
   18. COOKIE BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--color-border);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-cookie);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.cookie-banner__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 0;
}

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

/* ==========================================================================
   18.1 SCROLL-DRIVEN ANIMATIONS (CSS puro)
   ========================================================================== */

/* Keyframes de entrada */
@keyframes sda-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sda-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sda-left {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes sda-right {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Navegadores modernos con Scroll-Driven Animations nativas */
@supports (animation-timeline: view()) {
    .card,
    .specs-card,
    .gallery__item {
        animation: sda-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

    .hero__text {
        animation: sda-left linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }

    .hero__image {
        animation: sda-right linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }

    .feature-item {
        animation: sda-fade linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }

    .page-header__title,
    .page-header__desc {
        animation: sda-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 50%;
    }

    .stats-bar__item {
        animation: sda-fade linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }
}

/* Fallback para navegadores sin soporte (IntersectionObserver vía JS) */
@supports not (animation-timeline: view()) {
    .sda-el {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 550ms ease, transform 650ms cubic-bezier(0.22, 0.8, 0.22, 1);
    }
    .sda-el.sda-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sin animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .sda-el,
    .card,
    .specs-card,
    .gallery__item,
    .hero__text,
    .hero__image,
    .feature-item,
    .page-header__title,
    .page-header__desc,
    .stats-bar__item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Parallax con Enllax.js (elementos marcados con data-enllax-*) */
[data-enllax-ratio] {
    will-change: transform;
}

/* ==========================================================================
   18.2 EFECTOS DE MICROINTERACCIÓN (CSS puro, sin JS)
   ========================================================================== */

/* 1. Fade-in de página al cargar */
@keyframes page-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

body {
    animation: page-in 350ms ease both;
}

/* 2. Pulso suave en botón CTA cada 5 s */
@keyframes cta-pulse {
    0%, 85%, 100% { box-shadow: var(--shadow-accent); }
    90%            { box-shadow: 0 0 0 8px rgba(59,130,246,0.18), var(--shadow-accent); }
    95%            { box-shadow: 0 0 0 4px rgba(59,130,246,0.1),  var(--shadow-accent); }
}

.btn--primary {
    animation: cta-pulse 5s ease-in-out infinite;
}

.btn--primary:hover {
    animation: none; /* Pausa el pulso al hacer hover para no interferir */
}

/* 3. Focus glow mejorado en formulario */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 1px 3px rgba(0,0,0,0.06);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

/* 4. Microanimación en iconos SVG al hover */
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-4px); }
    70%       { transform: translateY(-2px); }
}

@keyframes icon-spin-slight {
    from { transform: rotate(0deg); }
    to   { transform: rotate(8deg); }
}

.feature-item:hover .feature-item__icon {
    animation: icon-bounce 400ms ease;
}

.specs-card:hover svg {
    animation: icon-bounce 400ms ease;
}

/* 5. Flecha "→" en links de navegación rebota al hover */
@keyframes arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(4px); }
}

.nav__link:hover::after {
    animation: arrow-nudge 300ms ease;
}

/* 6. Imagen hero con zoom muy suave al cargar la página */
@keyframes hero-zoom {
    from { transform: scale(1.03); }
    to   { transform: scale(1); }
}

.hero__image img {
    animation: hero-zoom 1.2s cubic-bezier(0.22, 0.8, 0.22, 1) both;
}

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    body,
    .btn--primary,
    .hero__image img {
        animation: none !important;
    }
}

/* ==========================================================================
   19. UTILITY CLASSES
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mx-auto { margin-inline: auto; }

/* ==========================================================================
   20. MEDIA QUERIES (Desktop)
   ========================================================================== */

@media (min-width: 640px) {
    .container {
        padding-inline: var(--space-6);
    }
    
    .hero__title {
        font-size: var(--font-size-5xl);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .menu-toggle,
    .nav-mobile {
        display: none;
    }
    
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .cookie-banner__inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cookie-banner__text {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   21. PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .cookie-banner,
    .menu-toggle,
    .nav-mobile,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .section {
        padding-block: var(--space-8);
    }
}

/* ==========================================================================
   22. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.wa-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    /* Sutil pulso inicial para llamar la atención */
    animation: wa-appear 0.4s ease 1.2s both;
}

.wa-btn:hover {
    background: #1ebe5d;
    transform: scale(1.1);
}

.wa-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    flex-shrink: 0;
}

/* Tooltip */
.wa-btn::before {
    content: "Escríbenos";
    position: absolute;
    right: calc(100% + 10px);
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.wa-btn:hover::before {
    opacity: 1;
}

@keyframes wa-appear {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* Si el cookie banner está visible, sube el botón para no taparlo */
.cookie-banner.is-visible ~ .wa-btn,
body.cookie-visible .wa-btn {
    bottom: 120px;
}
