/* ========== 1. Colores, fuente y base ========== */
:root {
    --navy: #1a2540;
    --blue: #0b57a4;
    --text-soft: #5b6478;
    --bg-soft: #f3f6fb;
    --border: #dfe5ef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--navy);
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

/* ========== 2. Barra superior ========== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-inline: max(24px, calc((100% - 1216px) / 2));
}

nav img {
    height: 52px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--blue);
}

/* ========== 3. Botones ========== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: var(--blue);
    color: #fff;
    transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    translate: 0 -2px;
    box-shadow: 0 8px 18px rgba(26, 37, 64, 0.18);
}

.btn:not(.btn-outline)::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.btn:not(.btn-outline):hover::after {
    transform: translateX(4px);
}

.btn-dark {
    background: var(--navy);
    padding: 18px 32px;
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--border);
    padding: 18px 32px;
}

/* ========== 4. Sección principal ========== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    background: var(--bg-soft);
    padding: 96px max(24px, calc((100% - 1216px) / 2));
}

.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blue);
    background: #e8f0fb;
    border: 1px solid #c9dcf3;
    border-radius: 999px;
}

.badge::before {
    content: "";
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulso 2s infinite;
}

@keyframes pulso {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
}

.highlight {
    color: var(--blue);
}

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-soft);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

/* ========== 5. Los tres checks ========== */
.hero-checks {
    display: flex;
    gap: 28px;
    list-style: none;
    font-size: 14px;
    color: var(--text-soft);
}

.hero-checks li {
    display: flex;
    align-items: center;
}

.hero-checks li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    font-size: 11px;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: 50%;
}

/* ========== 6. Imagen con marco ========== */
.hero-image {
    position: relative;
}

.hero-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(26, 37, 64, 0.15);
}

.hero-image::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 1px solid #c9dcf3;
    border-radius: 16px;
}

/* ========== 7. Sección de servicios ========== */
.container {
    width: min(1216px, 100% - 48px);
    margin-inline: auto;
}

.services {
    padding: 96px 0;
    background: #fff;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

.section-head h2 {
    margin-bottom: 16px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
}

.section-head p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: translate 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    translate: 0 -4px;
    border-color: #c9dcf3;
    box-shadow: 0 12px 28px rgba(26, 37, 64, 0.08);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--blue);
    background: #e8f0fb;
    border-radius: 10px;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-soft);
}

/* ========== 18. Etiqueta y pastillas de cada servicio ========== */
.service-card {
    position: relative;
}

.service-tag {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 20px;
}

.service-pills li {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
}

/* ========== 8. Tu aliado tecnológico (sección oscura) ========== */
.ally {
    padding: 64px 0;
    color: #fff;
    background: var(--navy);
}

.ally-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.section-label-light {
    color: #4d94e8;
}

.ally h2 {
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
}

.ally p {
    max-width: 480px;
    font-size: 15px;
    line-height: 1.8;
    color: #b8c2d6;
}

.ally-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    list-style: none;
}

.ally-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ally-points li::before {
    content: "✓";
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    color: #4d94e8;
    border: 1.5px solid #4d94e8;
    border-radius: 50%;
}

/* ========== 9. Nuestro enfoque ========== */
.approach {
    padding: 80px 0 96px;
    background: #fff;
}

.approach h2 {
    max-width: 520px;
    margin-bottom: 48px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.step {
    padding: 24px 16px;
    border-left: 1px solid var(--border);
}

.step:first-child {
    border-left: none;
}

.step-num {
    display: block;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
}

.step h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.step p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-soft);
}

/* ========== 10. Sectores que atendemos ========== */
.sectors {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 44px;
    padding: 24px 28px;
    background: var(--bg-soft);
    border-radius: 8px;
}

.sectors .section-label {
    margin-bottom: 4px;
    font-size: 11px;
}

.sectors p {
    font-size: 16px;
    font-weight: 600;
}

/* ========== 11. Contacto ========== */
.contact {
    padding: 64px 0 48px;
    color: #fff;
    background: var(--navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact h2 {
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
}

.contact-info > p {
    max-width: 380px;
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 1.8;
    color: #b8c2d6;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}

.contact-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: #4d94e8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.contact-card h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a4adbf;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #4d94e8;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

/* ========== 12. Pie de página ========== */
.footer {
    padding-bottom: 32px;
    background: var(--navy);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer img {
    height: 52px;
    opacity: 1;
}

.footer p {
    font-size: 11px;
    color: #8f9ab0;
}

/* ========== 13. Extras generales ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== 14. Tablet y celular grande (hasta 900px) ========== */
@media (max-width: 900px) {
    html {
        scroll-padding-top: 80px;
    }

    header {
        position: relative;
    }

    nav {
        height: 72px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(26, 37, 64, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.btn) {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .btn {
        justify-content: center;
        margin-top: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-block: 64px;
    }

    h1 {
        font-size: 48px;
    }

    .services {
        padding-block: 72px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head h2,
    .approach h2 {
        font-size: 30px;
    }

    .ally-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ally h2,
    .contact h2 {
        font-size: 28px;
    }

    .approach {
        padding-block: 64px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step:nth-child(odd) {
        border-left: none;
    }

    .step:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========== 15. Celular (hasta 600px) ========== */
@media (max-width: 600px) {
    nav img {
        height: 40px;
    }

    .hero {
        padding-block: 48px;
        gap: 40px;
    }

    .badge {
        font-size: 11px;
    }

    h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .hero-checks {
        flex-direction: column;
        gap: 12px;
    }

    .hero-image img {
        height: 240px;
    }

    .hero-image::before {
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
    }

    .services,
    .approach {
        padding-block: 56px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2,
    .approach h2,
    .ally h2,
    .contact h2 {
        font-size: 26px;
    }

    .ally-points {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        border-left: none;
    }

    .step:nth-child(n+2) {
        border-top: 1px solid var(--border);
    }

    .sectors {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .sectors .btn {
        justify-content: center;
    }

    .contact-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .field input,
    .field textarea {
        font-size: 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ========== 16. Animaciones ========== */
@keyframes subir-y-aparecer {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
}

.reveal.visible {
    animation: subir-y-aparecer 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
    }

    .reveal.visible {
        animation: none;
    }

    .badge::before {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card,
    .btn,
    .btn::after {
        transition: none;
    }
}

/* ========== 17. Preguntas frecuentes ========== */
.faq {
    padding: 80px 0;
    background: var(--bg-soft);
}

.faq h2 {
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 800;
}

.faq-list {
    max-width: 760px;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 20px;
    color: var(--blue);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-soft);
}