/* Sercomtec Corporate — diseño original
   Paleta: tinta #0A1628 · teal #1AB8A8 · cobre #D4843C · piedra #E7EEF0
   Tipografía: Syne (display) + Manrope (texto)
*/

:root {
    --ink: #0a1628;
    --ink-2: #132238;
    --teal: #1ab8a8;
    --teal-deep: #0f7f74;
    --copper: #d4843c;
    --stone: #e7eef0;
    --stone-2: #f3f7f8;
    --paper: #fbfcfc;
    --muted: #5b6b7c;
    --line: rgba(10, 22, 40, 0.12);
    --radius: 1.1rem;
    --shadow: 0 24px 60px rgba(10, 22, 40, 0.18);
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--teal);
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 100;
}

.skip-link:focus {
    top: 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(251, 252, 252, 0.86);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(251, 252, 252, 0.95);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    gap: 1rem;
}

.site-header__tools {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    order: 3;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
}

.theme-toggle__icon--sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
    display: inline;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand__mark {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.2rem;
    background: linear-gradient(135deg, var(--teal), var(--copper));
    box-shadow: 0 0 0 4px rgba(26, 184, 168, 0.15);
}

.brand__text {
    font-size: 1.05rem;
}

.site-nav__list {
    display: flex;
    gap: 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav__list a {
    color: var(--muted);
}

.site-nav__list a:hover {
    color: var(--ink);
}

.site-nav__actions {
    display: flex;
    gap: 0.5rem;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: transparent;
    cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    margin: 0 auto;
    position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bar::before {
    top: -6px;
}

.nav-toggle__bar::after {
    top: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--solid {
    background: var(--ink);
    color: #fff;
}

.btn--solid:hover {
    background: var(--teal-deep);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn--line {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn--lg {
    padding: 0.85rem 1.35rem;
    font-size: 0.95rem;
}

.btn--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0.55rem;
}

.btn__icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.4rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(26, 184, 168, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(212, 132, 60, 0.18), transparent 50%),
        linear-gradient(165deg, #07111f 0%, #0a1628 45%, #123047 100%);
    color: #fff;
    min-height: min(92vh, 760px);
    display: flex;
    align-items: center;
    padding: 4.5rem 0 5rem;
}

.hero__glow {
    position: absolute;
    inset: auto -10% -20% 40%;
    height: 55%;
    background: linear-gradient(90deg, transparent, rgba(26, 184, 168, 0.12), transparent);
    filter: blur(40px);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: end;
}

.hero__brand {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.18em;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0 0 1rem;
    color: var(--teal);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    max-width: 12ch;
}

.hero__lead {
    margin: 0 0 1.75rem;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__panel {
    display: grid;
    gap: 1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    backdrop-filter: blur(8px);
}

.hero-card--alt {
    border-color: rgba(212, 132, 60, 0.35);
}

.hero-card__kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.45rem;
}

.hero-card strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.hero-card p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section--stone {
    background: var(--stone-2);
}

.section--ink {
    background: var(--ink);
    color: #fff;
}

.section__head {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    line-height: 1.15;
    margin: 0.35rem 0 0.75rem;
}

.section__lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.section__lead--light,
.section__head--light .section__title {
    color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-deep);
}

.eyebrow--light {
    color: var(--teal);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.prose p {
    color: var(--muted);
    margin-top: 0;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.chip-row li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.35rem;
    min-height: 10.5rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: rgba(26, 184, 168, 0.45);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.55rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

/* Systems */
.system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}

.system-card {
    display: block;
    border-radius: calc(var(--radius) + 0.2rem);
    padding: 1.75rem 1.6rem;
    background: linear-gradient(160deg, rgba(26, 184, 168, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(26, 184, 168, 0.35);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.system-card__icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.85rem;
    object-fit: cover;
    margin-bottom: 1rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.system-card--copper {
    background: linear-gradient(160deg, rgba(212, 132, 60, 0.18), rgba(255, 255, 255, 0.04));
    border-color: rgba(212, 132, 60, 0.4);
}

.system-card:hover {
    transform: translateY(-4px);
    border-color: #fff;
}

.system-card__badge {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.7rem;
}

.system-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0 0 0.6rem;
}

.system-card p {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.72);
}

.system-card__cta {
    font-weight: 800;
    color: var(--teal);
}

.system-card--copper .system-card__cta {
    color: #f0b27a;
}

/* Process */
.process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: none;
}

.process li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
}

.process__num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--teal-deep);
    margin-bottom: 0.7rem;
}

.process h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.process p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact__meta {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 0.85rem;
    background: var(--stone-2);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 0.15rem);
    padding: 1.5rem;
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    padding: 0.7rem 0.85rem;
    font: inherit;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(26, 184, 168, 0.45);
    border-color: var(--teal);
}

.contact-form__note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #060d18;
    color: rgba(255, 255, 255, 0.78);
    padding: 3rem 0 1.5rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0 0 0.5rem;
}

.site-footer__tag {
    margin: 0;
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__label {
    margin: 0 0 0.7rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    padding-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
    .hero__copy,
    .hero__panel,
    .service-card,
    .system-card,
    .process li {
        animation: rise 0.7s ease both;
    }

    .hero__panel {
        animation-delay: 0.12s;
    }

    .service-card:nth-child(2) { animation-delay: 0.05s; }
    .service-card:nth-child(3) { animation-delay: 0.1s; }
    .service-card:nth-child(4) { animation-delay: 0.15s; }
    .service-card:nth-child(5) { animation-delay: 0.2s; }
    .service-card:nth-child(6) { animation-delay: 0.25s; }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .hero__grid,
    .split,
    .service-grid,
    .system-grid,
    .process,
    .contact,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: fixed;
        inset: 4.25rem 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem 1.25rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav__actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 3.5rem;
    }

    .hero__title {
        max-width: none;
    }
}

/* Tema negro / oscuro */
html[data-theme="dark"] {
    --ink: #f3f6f8;
    --ink-2: #d7dee6;
    --teal: #2bd4c3;
    --teal-deep: #1ab8a8;
    --copper: #e39a55;
    --stone: #121820;
    --stone-2: #0e141c;
    --paper: #080b10;
    --muted: #9aabbc;
    --line: rgba(243, 246, 248, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(1000px 420px at 12% -10%, rgba(26, 184, 168, 0.12), transparent 55%),
        radial-gradient(800px 360px at 90% 0%, rgba(212, 132, 60, 0.1), transparent 50%),
        var(--paper);
    color: var(--ink);
}

html[data-theme="dark"] .site-header {
    background: rgba(8, 11, 16, 0.86);
}

html[data-theme="dark"] .site-header.is-scrolled {
    background: rgba(8, 11, 16, 0.96);
}

html[data-theme="dark"] .btn--solid {
    background: var(--teal);
    color: #071018;
}

html[data-theme="dark"] .btn--solid:hover {
    background: #fff;
    color: #071018;
}

html[data-theme="dark"] .btn--ghost {
    color: var(--ink);
    border-color: var(--line);
}

html[data-theme="dark"] .section--stone,
html[data-theme="dark"] .process li,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .hero-card {
    background: #101820;
    border-color: var(--line);
}

html[data-theme="dark"] .section--ink {
    background: #05070b;
}

html[data-theme="dark"] .site-footer {
    background: #05070b;
    color: rgba(243, 246, 248, 0.78);
}

html[data-theme="dark"] .chip-row li {
    background: #ffffff;
    color: #0a1628;
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .site-nav__list a:hover {
    color: var(--teal);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
    background: #0b1118;
    color: #f3f6f8;
    border-color: var(--line);
}

html[data-theme="dark"] .contact-form label span,
html[data-theme="dark"] .prose,
html[data-theme="dark"] .section__title,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .process h3 {
    color: #f3f6f8;
}

html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .process p,
html[data-theme="dark"] .prose p,
html[data-theme="dark"] .section__lead,
html[data-theme="dark"] .contact-form__note {
    color: #9aabbc;
}

@media (max-width: 960px) {
    html[data-theme="dark"] .site-nav {
        background: #0b1118;
    }
}
/* Carrusel principal */
.hero-carousel {
 position: relative;
 overflow: hidden;
 background: #03070b;
 color: #fff;
}

.hero-carousel__viewport {
 overflow: hidden;
}

.hero-carousel__track {
 display: flex;
 transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel__slide {
 flex: 0 0 100%;
 min-width: 100%;
 min-height: clamp(360px, 38vw, 624px);
 position: relative;
}

.hero-carousel__banner,
.hero-carousel__banner img {
 width: 100%;
 height: 100%;
 min-height: inherit;
}

.hero-carousel__banner img {
 object-fit: cover;
 object-position: center;
}

.hero-carousel__slide--content {
 display: flex;
 align-items: center;
 padding: 4.5rem 0 5rem;
 background:
 radial-gradient(ellipse 80% 60% at 10% 20%, rgba(26, 184, 168, 0.22), transparent 55%),
 radial-gradient(ellipse 70% 50% at 90% 10%, rgba(212, 132, 60, 0.18), transparent 50%),
 linear-gradient(165deg, #07111f 0%, #0a1628 45%, #123047 100%);
}

.hero-carousel__slide--content .hero__grid {
 width: var(--shell);
 grid-template-columns: 1fr;
}

.hero-carousel__control {
 position: absolute;
 z-index: 3;
 top: 50%;
 transform: translateY(-50%);
 width: 2.75rem;
 height: 2.75rem;
 border: 1px solid rgba(255, 255, 255, 0.35);
 border-radius: 999px;
 background: rgba(3, 7, 11, 0.62);
 color: #fff;
 font-size: 2rem;
 line-height: 1;
 cursor: pointer;
 backdrop-filter: blur(8px);
}

.hero-carousel__control:hover,
.hero-carousel__control:focus-visible {
 background: var(--teal-deep);
 border-color: #fff;
}

.hero-carousel__control--prev { left: clamp(0.75rem, 2vw, 2rem); }
.hero-carousel__control--next { right: clamp(0.75rem, 2vw, 2rem); }

.hero-carousel__dots {
 position: absolute;
 z-index: 3;
 left: 50%;
 bottom: 1rem;
 transform: translateX(-50%);
 display: flex;
 gap: 0.55rem;
 padding: 0.4rem 0.55rem;
 border-radius: 999px;
 background: rgba(3, 7, 11, 0.55);
}

.hero-carousel__dots button {
 width: 0.7rem;
 height: 0.7rem;
 padding: 0;
 border: 1px solid rgba(255, 255, 255, 0.75);
 border-radius: 999px;
 background: transparent;
 cursor: pointer;
}

.hero-carousel__dots button.is-active {
 background: var(--teal);
 border-color: var(--teal);
}

@media (max-width: 640px) {
 .hero-carousel__slide { min-height: 420px; }
 .hero-carousel__banner img { object-fit: contain; }
 .hero-carousel__slide--content { padding: 3.5rem 0 4rem; }
 .hero-carousel__control { width: 2.35rem; height: 2.35rem; font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
 .hero-carousel__track { transition: none; }
}
