/* Variables CSS para temas */
:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --bg-primary: #0a0b0d;
    --bg-secondary: rgba(255, 255, 255, 0.02);
    --bg-tertiary: transparent;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(34, 197, 94, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --backdrop-blur: rgba(10, 11, 13, 0.95);
    --gradient-bg: radial-gradient(ellipse at center top, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    --card-hover-bg: rgba(34, 197, 94, 0.05);
}

/* Tema claro */
[data-theme="light"] {
    --bg-primary: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%);
    --bg-secondary: rgba(34, 197, 94, 0.04);
    --bg-tertiary: transparent;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.6);
    --border-color: rgba(34, 197, 94, 0.12);
    --border-hover: rgba(34, 197, 94, 0.3);
    --shadow-light: rgba(34, 197, 94, 0.15);
    --backdrop-blur: rgba(255, 255, 255, 0.98);
    --gradient-bg: radial-gradient(ellipse at center top, rgba(34, 197, 94, 0.12) 0%, rgba(16, 185, 129, 0.08) 30%, rgba(5, 150, 105, 0.05) 70%, transparent 100%);
    --card-hover-bg: rgba(34, 197, 94, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

[data-theme="light"] body {
    background-attachment: fixed;
    background-size: 100% 100%;
}

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

/* Toggle de tema */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--card-hover-bg);
    border-color: var(--border-hover);
    transform: translateY(-50%) scale(1.05);
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 60vw;
    height: 60vw;
    background-image: url('img/fondologo_transparent.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}


header, main, footer, section {
    position: relative;
    z-index: 1;
}


/* Encabezado */
header {
    
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--backdrop-blur);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 10px 0;
    transition: background 0.3s ease, padding 0.3s ease;
    
}

header.scrolled {
    padding: 12px 0;
}

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

.logo {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    height: 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 180px;
}


/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

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

.cta-nav {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    white-space: nowrap;
}

.cta-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

/* Seccion principal */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent !important;
}

[data-theme="light"] .hero {
    background: transparent;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 24px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.3);
}

.btn-full-width {
    width: 100%;
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-divider {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 0 auto 10px;
    border-radius: 2px;
}

.stat-label {
    font-size: clamp(11px, 1.5vw, 13px);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* Seccion de servicios */
.services {
    padding: 120px 0;
    background: var(--bg-tertiary);
}

[data-theme="light"] .services {
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.06) 50%, rgba(5, 150, 105, 0.04) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-hover-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Seccion acerca de */
.about {
    padding: 120px 0;
    background: var(--bg-tertiary);
}

[data-theme="light"] .about {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.04) 50%, rgba(5, 150, 105, 0.02) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-features {
    list-style: none;
    margin: 32px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-features li::before {
    content: '\2713';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
    width: 20px;
    flex-shrink: 0;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.value-prop-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.value-prop-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-prop-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.value-prop-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Seccion de proceso */
.process {
    padding: 120px 0;
    background: var(--gradient-bg);
}

[data-theme="light"] .process {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%),
                linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-top: 80px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 auto 24px;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Seccion de contacto */
.contact {
    padding: 120px 0;
    background: var(--bg-tertiary);
}

[data-theme="light"] .contact {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(5, 150, 105, 0.03) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.contact-item-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-link:hover {
    color: var(--primary-color);
}

.contact-item-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form select {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.contact-form select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .contact-form select option {
    background: #ffffff;
    color: #1a1a1a;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

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

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Pie de pagina */
footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

[data-theme="light"] footer {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.04) 50%, rgba(5, 150, 105, 0.02) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-text {
    display: block;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-credit {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.tukicode-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tukicode-link:hover {
    opacity: 0.8;
}

.tuki-white {
    color: #ffffff;
}

[data-theme="light"] .tuki-white {
    color: #1a1a1a;
}

.tuki-violet {
    color: #8b5cf6;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 100px;
    right: 24px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: white;
}

.notification-error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
}

/* ================ SCROLL ANIMATIONS ================ */

/* Shared base for all animations */
[class*="anim-"] {
    opacity: 0;
    will-change: opacity, transform;
}

/* 1. Hero: Zoom in + fade */
.anim-zoom-in {
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 2. Generic fade up (section headers, footer) */
.anim-fade-up {
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Slide from left */
.anim-slide-left {
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 4. Slide from right */
.anim-slide-right {
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 5. Flip in (process steps) */
.anim-flip-in {
    transform: perspective(600px) rotateX(25deg) translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-flip-in.visible {
    opacity: 1;
    transform: perspective(600px) rotateX(0) translateY(0);
}

/* 6. Scale up (value props) */
.anim-scale-up {
    transform: scale(0.8) translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scale-up.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stagger delays via data-delay attribute */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }

/* Mobile overlay for nav */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ================ RESPONSIVE ================ */

/* Tablet landscape */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
}

/* Tablet portrait & mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        background: var(--backdrop-blur);
        backdrop-filter: blur(20px);
        padding: 100px 32px 32px;
        gap: 0;
        z-index: 999;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a::after {
        display: none;
    }

    .cta-nav {
        display: none;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding-top: 70px;
        padding-bottom: 24px;
    }

    .hero-badge {
        margin-bottom: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 9vw, 3rem);
        margin-bottom: 14px;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 32px;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .stat-divider {
        width: 24px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 10px;
    }

    .services,
    .process,
    .about,
    .contact {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px 24px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-brand h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .footer-brand p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-section a {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }

    .footer-credit {
        font-size: 11px;
    }

    .social-links {
        justify-content: center;
    }

    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .value-prop-card {
        padding: 24px 16px;
    }

    .theme-toggle {
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .theme-toggle:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .notification {
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-badge {
        font-size: 11px;
        margin-bottom: 16px;
    }

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

    .hero .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-cta {
        margin-bottom: 24px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 14px 6px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-divider {
        width: 20px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 9px;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        gap: 40px;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    footer {
        padding: 32px 0 20px;
    }

    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-bottom {
        padding-top: 16px;
    }
}
[data-theme="light"] .hero {
    background: transparent !important;
}

[data-theme="light"] .services {
    background: transparent !important;
}

[data-theme="light"] .about {
    background: transparent !important;
}

[data-theme="light"] .process {
    background: transparent !important;
}

[data-theme="light"] .contact {
    background: transparent !important;
}

[data-theme="light"] footer {
    background: transparent !important;
}
.process {
    background: transparent !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [class*="anim-"] {
        opacity: 1;
        transform: none;
    }
}
