﻿
:root {
    --primary: #c8151b;
    --primary-dark: #9c1016;
    --text-main: #222222;
    --text-soft: #555555;
    --bg-light: #f7f7f9;
    --bg-dark: #151515;
    --border-soft: #e2e2e7;
    --max-width: 1120px;
    --radius-soft: 10px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #ffffff 0, #f2f3f7 40%, #e9ecf3 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[id] {
    scroll-margin-top: 90px; /* o la altura exacta de tu header */
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* botones idiomas */

/* Selector de idioma en el header */
.lang-switch {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: 0.75rem; /* separarlo del teléfono */
}

.lang-btn {
    border: 1px solid rgba(148, 163, 184, 0.75);
    background: #ffffff;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    color: #4b5563;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

    .lang-btn:hover {
        border-color: #c8151b;
        color: #c8151b;
    }

    .lang-btn.lang-active {
        background: #c8151b;
        color: #ffffff;
        border-color: #c8151b;
        transform: translateY(-1px);
    }

/* Ajuste responsive: en móvil que no se rompa la cabecera */
@media (max-width: 640px) {
    .nav-cta {
        gap: 0.4rem;
    }

    .nav-phone {
        font-size: 0.78rem;
    }

    .lang-btn {
        padding: 0.18rem 0.5rem;
        font-size: 0.7rem;
    }
}


/* Layout general */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 60px;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .brand-mark img {
        width: 120%;
        height: auto;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

    .brand-text span:first-child {
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .brand-text span:last-child {
        color: var(--text-soft);
        font-size: 0.78rem;
    }

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

    .nav-links a {
        position: relative;
        font-weight: 500;
        color: var(--text-soft);
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -0.3rem;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--primary), var(--primary-dark));
            transform-origin: left;
            transform: scaleX(0);
            transition: transform 0.2s ease-out;
        }

        .nav-links a:hover::after {
            transform: scaleX(1);
        }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-phone {
    font-size: 0.84rem;
    color: var(--text-soft);
    white-space: nowrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(200, 21, 27, 0.35);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.2s ease-out;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 45px rgba(200, 21, 27, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 10px 24px rgba(200, 21, 27, 0.3);
    }

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

section {
    margin-bottom: 3.5rem;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.75rem 2.25rem;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #ffffff 0, #f8fafc 55%, #eef2ff 100%);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: -40%;
        background: radial-gradient(circle at 0% 0%, rgba(200, 21, 27, 0.16) 0, transparent 45%), radial-gradient(circle at 80% 0%, rgba(15, 23, 42, 0.12) 0, transparent 50%);
        opacity: 0.85;
        pointer-events: none;
    }

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-soft);
    margin-bottom: 0.9rem;
}

    .hero-kicker span {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--primary);
    }

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

    .hero h1 span {
        color: var(--primary);
        display: block;
    }

.hero-sub {
    font-size: 0.99rem;
    color: var(--text-soft);
    max-width: 36rem;
    margin-bottom: 1.45rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.7rem;
}

.tag-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-soft);
}

    .hero-note strong {
        color: var(--text-main);
    }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.hero-meta-group span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.7rem;
}

.hero-meta-group span:last-child {
    font-size: 0.82rem;
    color: var(--text-main);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 360px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
    padding: 1.4rem 1.3rem;
    position: relative;
    overflow: hidden;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.hero-card-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

    .hero-card-logo img {
        width: 48px;
        height: auto;
    }

    .hero-card-logo span {
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

.badge-outline {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-soft);
}

.hero-card-body {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 1.1rem;
}

    .hero-card-body strong {
        color: var(--text-main);
    }

.hero-card-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.78rem;
}

    .hero-card-footer div span:first-child {
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        font-weight: 600;
        font-size: 0.7rem;
        color: #6b7280;
        margin-bottom: 0.1rem;
    }

    .hero-card-footer div span:last-child {
        color: var(--text-main);
    }

.hero-card-accent {
    position: absolute;
    inset: auto -40px -40px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(200, 21, 27, 0.15), transparent 60%);
}

/* Secciones */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .section-header h2 {
        font-size: 1.35rem;
    }

    .section-header p {
        font-size: 0.9rem;
        color: var(--text-soft);
        max-width: 28rem;
    }

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: var(--radius-soft);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

    .card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .card p {
        font-size: 0.9rem;
        color: var(--text-soft);
        margin-bottom: 0.6rem;
    }

.muted {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.pill {
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-soft);
    background: #f9fafb;
}

/* Servicios */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.service-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border-radius: 14px;
    padding: 1.05rem 1.1rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.service-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.service-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.86rem;
    color: var(--text-soft);
    margin-bottom: 0.65rem;
}

.service-meta {
    font-size: 0.76rem;
    color: #6b7280;
}

.service-accent {
    position: absolute;
    inset: auto -40px -50px auto;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 21, 27, 0.22), transparent 70%);
}

/* Experiencia */

.timeline {
    border-left: 1px solid rgba(148, 163, 184, 0.7);
    padding-left: 1.2rem;
    margin-top: 0.6rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 0.9rem;
    padding-left: 0.35rem;
}

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -1.26rem;
        top: 0.18rem;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 2px solid var(--primary);
    }

    .timeline-item strong {
        display: block;
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }

    .timeline-item span {
        font-size: 0.83rem;
        color: var(--text-soft);
    }

.sectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

    .sectors div {
        padding: 0.6rem 0.7rem;
        border-radius: 10px;
        border: 1px dashed rgba(148, 163, 184, 0.8);
        background: #f9fafb;
    }

    .sectors strong {
        display: block;
        margin-bottom: 0.15rem;
    }

/* Contacto */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 1.75rem;
}

.contact-card {
    border-radius: var(--radius-soft);
    padding: 1.5rem 1.6rem;
    background: linear-gradient(135deg, var(--bg-dark), #111827);
    color: #f9fafb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.85);
    position: relative;
    overflow: hidden;
}

    .contact-card::before {
        content: "";
        position: absolute;
        inset: -40%;
        background: radial-gradient(circle at 0% 0%, rgba(200, 21, 27, 0.55), transparent 60%), radial-gradient(circle at 100% 0%, rgba(30, 64, 175, 0.3), transparent 60%);
        opacity: 0.9;
        mix-blend-mode: screen;
        pointer-events: none;
    }

.contact-inner {
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    font-size: 0.86rem;
}

    .contact-details div span:first-child {
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-size: 0.74rem;
        color: #9ca3af;
        margin-bottom: 0.1rem;
    }

    .contact-details div span:last-child a {
        color: #f9fafb;
    }

.offices {
    background: #ffffff;
    border-radius: var(--radius-soft);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
    font-size: 0.88rem;
}

    .offices h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

.office-item {
    margin-bottom: 0.8rem;
}

    .office-item:last-child {
        margin-bottom: 0;
    }

    .office-item strong {
        display: block;
        margin-bottom: 0.15rem;
    }

/* Footer */

footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.4rem 1.5rem 1.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

    .footer-inner span {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

.footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
}

/* Responsividad */

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.1rem 1.7rem;
    }

    .hero-visual {
        order: -1;
    }

    .grid-2,
    .services-grid,
    .sectors,
    .contact-grid,
    .contact-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    main {
        padding: 1.6rem 1.2rem 2.4rem;
    }

    .hero {
        padding: 1.7rem 1.3rem;
        border-radius: 18px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        padding-inline: 1.1rem;
    }

    .nav-phone {
        display: none;
    }

    .contact-card {
        padding: 1.3rem 1.4rem;
    }
}


