/* =========================================================
   IntTech — Hoja de estilos principal
   Estética: industrial / security-tech · navy + ámbar eléctrico
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    /* Marca */
    --navy-900: #081623;
    --navy-800: #0a1e30;
    --navy-700: #0f2b46;
    --navy-600: #143a5e;
    --amber: #f39c12;
    --amber-300: #ffb648;
    --amber-600: #d4860a;

    --radius: 14px;
    --radius-sm: 10px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow-1: 0 4px 18px rgba(0, 0, 0, 0.18);
    --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.3);
    --font-display: "Chakra Petch", system-ui, sans-serif;
    --font-body: "Sora", system-ui, sans-serif;
}

/* Modo oscuro (por defecto) */
[data-theme="dark"] {
    --bg: var(--navy-900);
    --bg-alt: var(--navy-800);
    --surface: #0e2034;
    --surface-2: #12283f;
    --border: rgba(255, 255, 255, 0.09);
    --text: #eaf1f8;
    --text-soft: #9fb3c8;
    --header-bg: rgba(8, 22, 35, 0.78);
    --hero-overlay-1: rgba(8, 22, 35, 0.55);
    --hero-overlay-2: rgba(8, 22, 35, 0.92);
}

/* Modo claro */
[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-alt: #eaf0f7;
    --surface: #ffffff;
    --surface-2: #f0f4f9;
    --border: rgba(15, 43, 70, 0.12);
    --text: #0f2b46;
    --text-soft: #4d6580;
    --header-bg: rgba(255, 255, 255, 0.82);
    --hero-overlay-1: rgba(8, 22, 35, 0.45);
    --hero-overlay-2: rgba(8, 22, 35, 0.85);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition:
        background 0.35s var(--ease),
        color 0.35s var(--ease);
}

img,
svg,
picture {
    display: block;
    max-width: 100%;
}
img {
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3,
.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-alt {
    background: var(--bg-alt);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1000;
    background: var(--amber);
    color: var(--navy-900);
    padding: 0.6rem 1rem;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
}

/* ---------- Botones ---------- */
.btn {
    --b: var(--amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        background 0.25s,
        color 0.25s,
        border-color 0.25s;
    text-align: center;
    white-space: nowrap;
}
.btn svg {
    flex: none;
}
.btn-primary {
    background: var(--amber);
    color: var(--navy-900);
    box-shadow: 0 8px 22px rgba(243, 156, 18, 0.32);
}
.btn-primary:hover {
    background: var(--amber-300);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.45);
}

/* Botón secundario / ghost — visible en ambos temas */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--amber);
}
.btn-ghost:hover {
    background: var(--amber);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(243, 156, 18, 0.28);
}
[data-theme="light"] .btn-ghost {
    color: var(--navy-900);
    border-color: var(--navy-700);
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .btn-ghost:hover {
    background: var(--navy-700);
    color: #fff;
    border-color: var(--navy-700);
    box-shadow: 0 8px 22px rgba(15, 43, 70, 0.25);
}

.btn-lg {
    padding: 1rem 1.7rem;
    font-size: 1.02rem;
}
.btn-sm {
    padding: 0.55rem 1.05rem;
    font-size: 0.85rem;
}
.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 68px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.35rem;
    color: var(--text);
}
.brand-text .brand-accent {
    color: var(--amber);
    font-weight: 700;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--amber);
    background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
    border: 1px solid var(--border);
}
.main-nav {
    margin-left: auto;
}
.main-nav ul {
    display: flex;
    gap: 1.6rem;
}
.main-nav a {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-soft);
    transition: color 0.2s;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 0.25s var(--ease);
}
.main-nav a:hover {
    color: var(--text);
}
.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: 1rem;
}
.theme-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
}
.theme-toggle:hover {
    color: var(--amber);
    border-color: var(--amber);
}
.theme-toggle .icon-moon {
    display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: 0.3s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}
.mobile-nav a {
    display: block;
    padding: 0.85rem clamp(1.1rem, 4vw, 2.5rem);
    color: var(--text);
    border-top: 1px solid var(--border);
}
.mobile-nav a:hover {
    background: var(--surface-2);
    color: var(--amber);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            var(--hero-overlay-1) 0%,
            var(--hero-overlay-2) 100%
        ),
        linear-gradient(90deg, rgba(8, 22, 35, 0.85), transparent 70%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(243, 156, 18, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 156, 18, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 25% 40%, #000 10%, transparent 75%);
}
/* Fondo de respaldo si la imagen aún no existe */
.hero-bg {
    background: radial-gradient(
        circle at 75% 20%,
        var(--navy-600),
        var(--navy-900) 60%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-block: 3rem;
    color: #eaf1f8;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 1.2rem;
}
.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.7rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: #d6e2ee;
    max-width: 38ch;
    margin-bottom: 2rem;
}
.hero-subtitle strong {
    color: var(--amber-300);
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.6rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.2rem, 5vw, 3rem);
}
.hero-stats li {
    display: flex;
    flex-direction: column;
}
.hero-stats strong {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--amber);
    line-height: 1;
}
.hero-stats span {
    font-size: 0.85rem;
    color: #b9c8d8;
    margin-top: 0.3rem;
}

/* Animación de entrada */
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.7s var(--ease) forwards;
}
.hero-content > *:nth-child(1) {
    animation-delay: 0.05s;
}
.hero-content > *:nth-child(2) {
    animation-delay: 0.18s;
}
.hero-content > *:nth-child(3) {
    animation-delay: 0.3s;
}
.hero-content > *:nth-child(4) {
    animation-delay: 0.42s;
}
.hero-content > *:nth-child(5) {
    animation-delay: 0.54s;
}
@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Mensaje de confianza ---------- */
.trust {
    background: linear-gradient(120deg, var(--navy-700), var(--navy-600));
    padding-block: clamp(2.4rem, 5vw, 3.6rem);
    color: #fff;
}
.trust-quote {
    position: relative;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.15rem, 2.6vw, 1.7rem);
    line-height: 1.4;
    max-width: 60ch;
    margin-inline: auto;
    text-align: center;
    padding-left: 2.4rem;
}
.trust-quote strong {
    color: var(--amber-300);
}
.quote-bolt {
    position: absolute;
    left: 0;
    top: -0.2em;
    font-size: 1.6em;
    filter: drop-shadow(0 0 12px rgba(243, 156, 18, 0.5));
}

/* ---------- Encabezado de sección ---------- */
.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-eyebrow {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.6rem;
}
.section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    margin-bottom: 0.7rem;
}
.section-lead {
    color: var(--text-soft);
    font-size: 1.05rem;
}

/* ---------- Servicios ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.3rem;
}
.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    overflow: hidden;
    transition:
        transform 0.3s var(--ease),
        border-color 0.3s,
        box-shadow 0.3s;
}
.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--amber);
    transition: height 0.35s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 156, 18, 0.4);
    box-shadow: var(--shadow-2);
}
.service-card:hover::before {
    height: 100%;
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--amber);
    background: linear-gradient(
        135deg,
        rgba(243, 156, 18, 0.16),
        rgba(243, 156, 18, 0.04)
    );
    border: 1px solid rgba(243, 156, 18, 0.25);
    margin-bottom: 1.2rem;
}
.service-icon svg {
    width: 26px;
    height: 26px;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}
.service-card p {
    color: var(--text-soft);
    font-size: 0.96rem;
}

/* ---------- Carrusel ---------- */
.carousel {
    position: relative;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 3rem);
}
.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}
.carousel-track {
    display: flex;
    transition: transform 0.55s var(--ease);
}
.slide {
    flex: 0 0 100%;
    padding-inline: 0.5rem;
}
@media (min-width: 720px) {
    .slide {
        flex-basis: 50%;
    }
}
@media (min-width: 1040px) {
    .slide {
        flex-basis: 33.333%;
    }
}
.slide figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.slide:hover img {
    transform: scale(1.06);
}
.slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 1rem 0.9rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(8, 22, 35, 0.92));
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.tag {
    align-self: flex-start;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--amber);
    color: var(--navy-900);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.slide figcaption .figure-title {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    display: block;
}
.figure-desc {
    font-family: var(--font-body, inherit);
    font-weight: 400;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.trust-badges {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 60rem;
}
.trust-badges li {
    background: rgba(15, 43, 70, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.trust-badges strong {
    font-family: var(--font-display);
    color: var(--amber-300);
    font-size: 0.95rem;
}
.trust-badges span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.3;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--amber);
    color: var(--navy-900);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-1);
    transition: 0.25s var(--ease);
}
.carousel-btn:hover {
    background: var(--amber-300);
    transform: translateY(-50%) scale(1.08);
}
.carousel-btn.prev {
    left: -4px;
}
.carousel-btn.next {
    right: -4px;
}
@media (min-width: 1040px) {
    .carousel-btn.prev {
        left: -10px;
    }
    .carousel-btn.next {
        right: -10px;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: 0.25s;
}
.carousel-dots button[aria-selected="true"] {
    background: var(--amber);
    width: 26px;
    border-radius: 6px;
}

/* ---------- Con qué trabajamos ---------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem 2rem;
}
.tech-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}
.tech-bullet {
    flex: none;
    width: 12px;
    height: 12px;
    margin-top: 0.45rem;
    border-radius: 3px;
    background: var(--amber);
    box-shadow: 0 0 14px rgba(243, 156, 18, 0.5);
    transform: rotate(45deg);
}
.tech-item h3 {
    font-size: 1.08rem;
    margin-bottom: 0.25rem;
}
.tech-item p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

/* ---------- Nosotros ---------- */
.about-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.about-text h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin-bottom: 1rem;
}
.about-text > p {
    color: var(--text-soft);
    margin-bottom: 1.4rem;
}
.about-points {
    margin-bottom: 1.8rem;
    display: grid;
    gap: 0.65rem;
}
.about-points li {
    position: relative;
    padding-left: 1.8rem;
}
.about-points li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--amber);
}
.about-figure {
    display: grid;
    place-items: center;
}
.about-card {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 20px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 2rem;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: var(--shadow-2);
    position: relative;
    overflow: hidden;
}
.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 70% 20%,
        rgba(243, 156, 18, 0.22),
        transparent 60%
    );
}
.about-bolt {
    font-size: 2rem;
}
.about-big {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.4rem;
    color: var(--amber);
    line-height: 1;
}
.about-small {
    color: #c7d6e5;
    font-size: 0.92rem;
}

/* ---------- Contacto ---------- */
.contact-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}
.contact-list {
    margin-top: 1.8rem;
    display: grid;
    gap: 1.2rem;
}
.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.contact-ic {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--amber);
}
.contact-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}
.contact-list a {
    font-family: var(--font-display);
    font-weight: 600;
}
.contact-list a:hover {
    color: var(--amber);
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-1);
    display: grid;
    gap: 1.1rem;
}
.field {
    display: grid;
    gap: 0.4rem;
}
.field label {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.88rem;
}
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    width: 100%;
}
.field textarea {
    resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.18);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
    border-color: #e05656;
}
.g-recaptcha {
    min-height: 78px;
}
.form-error {
    color: #ff7a7a;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-note {
    font-size: 0.82rem;
    color: var(--text-soft);
    text-align: center;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: #cdd9e5;
    border-top: 1px solid var(--border);
}
[data-theme="light"] .site-footer {
    background: var(--navy-700);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .brand-text {
    font-size: 1.4rem;
    color: #fff;
}
.footer-brand .brand-text .brand-accent {
    color: var(--amber);
    font-weight: 700;
}
.footer-brand p {
    margin-top: 0.7rem;
    color: #9fb3c8;
    max-width: 32ch;
}
.footer-nav {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}
.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--amber);
}
.footer-contact {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    font-family: var(--font-display);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 1.2rem;
    font-size: 0.85rem;
    color: #8298ad;
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: clamp(14px, 4vw, 26px);
    bottom: clamp(14px, 4vw, 26px);
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    height: 60px;
    width: 60px;
    padding: 0 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    transition:
        width 0.35s var(--ease),
        background 0.25s,
        transform 0.25s;
    animation: floatIn 0.6s var(--ease) 0.8s both;
}
.whatsapp-float svg {
    flex: none;
}
.whatsapp-label {
    font-family: var(--font-display);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition:
        opacity 0.25s,
        max-width 0.35s var(--ease),
        margin 0.25s;
}
.whatsapp-float:hover {
    width: 196px;
    background: #1ebe5b;
}
.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    max-width: 140px;
    margin-left: 10px;
}
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
@keyframes floatIn {
    from {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .main-nav,
    .header-cta {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
    /* Push header-actions to the right when main-nav is hidden */
    .header-actions {
        margin-left: auto;
    }
    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
    }
    .about-figure {
        order: -1;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    /* Keep carousel buttons inside visible area */
    .carousel-btn.prev {
        left: 8px;
    }
    .carousel-btn.next {
        right: 8px;
    }
}
@media (max-width: 540px) {
    /* Buttons full width in hero */
    .hero-cta-group {
        flex-direction: column;
    }
    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
    }
    /* Prevent hero text overflow */
    .hero-subtitle {
        max-width: 100%;
    }
    /* Footer single column */
    .footer-inner {
        grid-template-columns: 1fr;
    }
    /* Carousel buttons smaller and inside */
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    .carousel-btn.prev {
        left: 4px;
    }
    .carousel-btn.next {
        right: 4px;
    }
    /* Trust quote adjust */
    .trust-quote {
        padding-left: 2rem;
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
    /* About card smaller */
    .about-card {
        max-width: 240px;
    }
    /* Services grid single column */
    .services-grid {
        grid-template-columns: 1fr;
    }
    /* Tech grid single column */
    .tech-grid {
        grid-template-columns: 1fr;
    }
}
