/* ======================================================
   ElectroServices — Kinetismo Industrial
   Light/Dark alternating section design
   ====================================================== */

/* ===== CUSTOM PROPERTIES ===== */
:root {
    /* Dark palette */
    --surface:               #121413;
    --surface-container-low: #1a1c1b;
    --surface-container:     #1e201f;
    --surface-container-high:#282a29;
    --surface-container-highest:#333534;
    --surface-container-lowest:#0c0f0e;
    --on-surface:            #e2e3e1;
    --on-surface-variant:    #d6c4af;
    --outline-variant:       #514535;

    /* Accent / Primary */
    --primary:               #ffd39b;
    --primary-container:     #fbb03b;
    --on-primary:            #452b00;
    --on-primary-container:  #6c4500;

    /* Secondary */
    --secondary:             #97cbff;
    --secondary-container:   #044d79;
    --on-secondary-container:#89bdf0;

    /* Functional */
    --white:    #ffffff;
    --black:    #000000;
    --zinc-50:  #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;

    --success:  #25D366;
    --error:    #ff4444;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --navbar-h: 80px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--zinc-900);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
ul, ol { list-style: none; }

::selection {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

/* ===== KINETIC GRADIENT ===== */
.kinetic-gradient,
.btn-kinetic {
    background: linear-gradient(135deg, #fbb03b 0%, #ffd39b 100%);
}

/* ========================================
   NAVBAR (LIGHT)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--zinc-200);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.navbar-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}

.navbar-logo:hover .navbar-logo-img {
    transform: scale(1.05);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--zinc-500);
    padding: 4px 0;
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-link:hover {
    color: var(--zinc-900);
}

.nav-link.active {
    color: var(--primary-container);
    border-bottom: 2px solid var(--primary-container);
    padding-bottom: 2px;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-primary-container);
    background: var(--primary-container);
    border-radius: 8px;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.navbar-cta:hover {
    background: var(--on-primary-container);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(251,176,59,0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--zinc-900);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background: var(--white);
    border-left: 1px solid var(--zinc-200);
    transition: right 0.4s var(--ease);
    overflow-y: auto;
}

.mobile-menu.open { right: 0; }

.mobile-menu-inner {
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-logo {
    height: 80px;
    width: auto;
    margin-bottom: 32px;
    align-self: center;
}

.mobile-link {
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--zinc-900);
    border-bottom: 1px solid var(--zinc-200);
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.mobile-link:hover {
    color: var(--primary-container);
    padding-left: 12px;
}

.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--on-primary-container);
    background: linear-gradient(135deg, #fbb03b, #ffd39b);
    border-radius: 8px;
}

.mobile-menu-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--zinc-200);
}

.mobile-menu-info p {
    font-size: 13px;
    color: var(--zinc-500);
    margin-bottom: 4px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,0.4);
}

.mobile-menu-overlay.visible { display: block; }

/* ========================================
   HERO (DARK)
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-h);
    background: var(--surface);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mix-blend-mode: luminosity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--surface), rgba(18,20,19,0.8), transparent);
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 60px 0;
}

.hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title-accent {
    color: var(--primary-container);
}

.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
    color: var(--on-surface-variant);
    max-width: 640px;
    margin-bottom: 48px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-kinetic {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-primary-container);
    background: linear-gradient(135deg, #fbb03b, #ffd39b);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    white-space: nowrap;
}

.btn-kinetic:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(251,176,59,0.3);
}

.btn-kinetic .material-symbols-outlined {
    font-size: 20px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-surface);
    border: 1px solid rgba(81,69,53,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn-ghost:hover {
    background: var(--surface-container-highest);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Kinetic SVG decoration */
.hero-kinetic-svg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 33%;
    height: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.kinetic-wave {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    fill: none;
    stroke-width: 0.5;
}

/* ========================================
   STATS (DARK)
   ======================================== */
.stats-section {
    background: var(--surface-container-low);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    padding: 32px;
    border-left: 2px solid rgba(255,211,155,0.2);
    background: rgba(30,32,31,0.5);
}

.stat-number {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-accent {
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

/* ========================================
   SERVICES (LIGHT)
   ======================================== */
.services-section {
    padding: 96px 0;
    background: var(--zinc-50);
}

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 64px;
}

.services-header-text {
    max-width: 600px;
}

.section-title-light {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--zinc-900);
    margin-bottom: 12px;
}

.section-title-light em {
    font-style: italic;
}

.section-desc-light {
    font-size: 15px;
    color: var(--zinc-600);
    line-height: 1.7;
}

.services-header-line {
    flex: 1;
    height: 1px;
    background: var(--zinc-200);
    margin-bottom: 24px;
    display: none;
}

.services-header-tag {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-container);
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--zinc-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.services-grid-2 {
    margin-top: 1px;
}

.service-card-light {
    background: var(--white);
    padding: 48px;
    transition: all 0.5s var(--ease);
}

.service-card-light:hover {
    background: var(--zinc-50);
}

.service-icon-light {
    color: var(--primary-container);
    margin-bottom: 32px;
}

.service-icon-light .material-symbols-outlined {
    font-size: 48px;
}

.service-title-light {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--zinc-900);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.service-desc-light {
    font-size: 14px;
    color: var(--zinc-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.service-list-light {
    margin-bottom: 48px;
}

.service-list-light li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zinc-700);
    padding: 6px 0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-container);
    flex-shrink: 0;
}

.service-link-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-container);
    border-bottom: 2px solid rgba(251,176,59,0.2);
    padding-bottom: 4px;
    transition: border-color 0.3s var(--ease);
}

.service-link-light:hover {
    border-color: var(--primary-container);
}

/* ========================================
   PROJECTS BENTO (DARK)
   ======================================== */
.projects-section {
    padding: 96px 0;
    background: var(--surface-container-lowest);
}

.projects-header {
    margin-bottom: 64px;
}

.section-title-dark {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 16px;
}

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

.filter-tag {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 100px;
    border: 1px solid rgba(81,69,53,0.1);
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.filter-tag.active {
    background: var(--surface-container-high);
    border-color: rgba(81,69,53,0.3);
    color: var(--primary);
}

.filter-tag:hover:not(.active) {
    border-color: rgba(255,211,155,0.5);
}

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

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
    cursor: pointer;
}

.bento-item.bento-large { grid-column: span 8; }
.bento-item.bento-small { grid-column: span 4; }

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.bento-item:hover .bento-img {
    transform: scale(1.1);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-container-lowest), transparent 60%, transparent);
    opacity: 0.8;
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 32px;
}

.bento-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 12px;
}

.bento-tag-primary {
    background: var(--primary);
    color: var(--on-primary-container);
}

.bento-tag-secondary {
    background: var(--secondary);
    color: var(--on-secondary-container);
}

.bento-tag-neutral {
    background: var(--surface-container-highest);
    color: var(--white);
}

.bento-title {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

/* ========================================
   ABOUT (LIGHT)
   ======================================== */
.about-section {
    padding: 96px 0;
    background: var(--white);
}

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

.about-text-light {
    font-size: 15px;
    color: var(--zinc-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features-light {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature-light {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zinc-700);
}

.about-feature-light .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-container);
    font-variation-settings: 'FILL' 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-img-light {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

/* ========================================
   CONTACT (LIGHT)
   ======================================== */
.contact-section {
    padding: 96px 0;
    background: var(--white);
}

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

.text-accent-light {
    color: var(--primary-container);
}

.contact-desc-light {
    font-size: 16px;
    color: var(--zinc-600);
    line-height: 1.7;
    margin-bottom: 48px;
}

.contact-details-light {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-item-light {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon-light {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    border-radius: 6px;
    flex-shrink: 0;
}

.contact-icon-light .material-symbols-outlined {
    font-size: 22px;
    color: var(--primary-container);
}

.contact-item-light h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-container);
    margin-bottom: 4px;
}

.contact-item-light p {
    font-size: 14px;
    font-weight: 500;
    color: var(--zinc-900);
}

.contact-item-light a:hover {
    color: var(--primary-container);
}

.contact-map {
    height: 256px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--zinc-200);
    filter: grayscale(1) contrast(1.25);
    opacity: 0.8;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Form (Light) */
.contact-form-card-light {
    background: var(--zinc-50);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--zinc-200);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.form-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #fbb03b, #ffd39b);
}

.contact-form-card-light form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group-light {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-light label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--zinc-500);
}

.form-group-light input,
.form-group-light select,
.form-group-light textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--zinc-300);
    color: var(--zinc-900);
    font-size: 14px;
    transition: border-color 0.3s var(--ease);
}

.form-group-light input::placeholder,
.form-group-light textarea::placeholder {
    color: var(--zinc-400);
}

.form-group-light input:focus,
.form-group-light select:focus,
.form-group-light textarea:focus {
    border-color: var(--primary-container);
}

.form-group-light select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='%2371717a' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

.form-group-light textarea {
    resize: none;
}

/* ========================================
   FOOTER (DARK)
   ======================================== */
.footer {
    background: var(--zinc-950);
    border-top: 1px solid var(--zinc-800);
    padding: 64px 0;
}

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

.footer-logo-text {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--white);
}

.footer-logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(251,176,59,0.2)) brightness(1.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.footer-links a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--zinc-400);
    transition: color 0.3s var(--ease);
}

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

.footer-copy {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--zinc-500);
}

/* ========================================
   WHATSAPP FAB
   ======================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s var(--ease);
    animation: pulseGreen 2s infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zinc-100);
    border-radius: 50%;
    color: var(--zinc-500);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    background: var(--zinc-200);
    color: var(--zinc-900);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,211,102,0.12);
    border-radius: 50%;
    margin: 0 auto 16px;
    color: var(--success);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--zinc-900);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: var(--zinc-500);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-modal label {
    font-size: 12px;
    font-weight: 600;
    color: var(--zinc-600);
}

.required { color: var(--error); }

.form-group-modal input {
    width: 100%;
    padding: 12px 16px;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    border-radius: 8px;
    color: var(--zinc-900);
    font-size: 14px;
    transition: border-color 0.3s var(--ease);
}

.form-group-modal input::placeholder {
    color: var(--zinc-400);
}

.form-group-modal input:focus {
    border-color: var(--primary-container);
    box-shadow: 0 0 0 3px rgba(251,176,59,0.12);
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    background: var(--success);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    margin-top: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37,211,102,0.3);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 769px) {
    .services-header-line {
        display: block;
    }
}

@media (max-width: 1024px) {
    .contact-grid {
        gap: 48px;
    }

    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root { --navbar-h: 68px; }

    .container { padding: 0 20px; }

    .navbar-links,
    .navbar-cta {
        display: none;
    }

    .hamburger { display: flex; }

    /* Logo mobile */
    .navbar-logo-img {
        height: 44px;
    }

    .mobile-menu-logo {
        height: 72px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

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

    /* Services */
    .services-section { padding: 64px 0; }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    /* Projects */
    .projects-section { padding: 64px 0; }

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

    .bento-item {
        height: 280px;
    }

    .bento-item.bento-large,
    .bento-item.bento-small {
        grid-column: span 1;
    }

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

    /* About */
    .about-section { padding: 64px 0; }
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-light {
        height: 300px;
    }

    /* Contact */
    .contact-section { padding: 64px 0; }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 16px;
    }

    /* Hero */
    .hero-kinetic-svg {
        display: none;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-kinetic,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.bento-large:first-child,
    .bento-item.bento-large,
    .bento-item.bento-small {
        grid-column: span 1;
    }

    .bento-item {
        height: 220px;
    }

    .stat-number {
        font-size: 28px;
    }

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

    .modal {
        padding: 28px 20px;
    }

    .contact-form-card-light {
        padding: 28px 20px;
    }
}

/* Safe areas */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .whatsapp-fab {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}
