:root {
    --primary: #b00046;
    --primary-dark: #7b0031;
    --primary-soft: #f7e6ee;
    --black: #16171a;
    --gray-900: #24262b;
    --gray-700: #5d626b;
    --gray-200: #e8e9ed;
    --gray-100: #f6f7f9;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(0, 0, 0, .14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 98px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

#inicio {
    scroll-margin-top: 0;
}

#empresa,
#servicios,
#metodologia,
#entregables,
#contacto {
    scroll-margin-top: 98px;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: .06em;
    color: var(--primary);
}

.brand small {
    display: block;
    font-size: .72rem;
    color: var(--gray-700);
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 700;
    color: var(--gray-900);
    font-size: .96rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 1.3rem;
    cursor: pointer;
}

/* =========================
   BOTONES
========================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 999px;
    padding: 13px 24px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(176, 0, 70, .25);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-small {
    min-height: 40px;
    padding: 8px 18px;
    color: var(--white) !important;
}

/* =========================
   HERO PRINCIPAL
========================= */

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 150px 0 95px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(115deg, rgba(22, 23, 26, .92), rgba(123, 0, 49, .88)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 78px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .16), transparent 30%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: 12px;
}

.hero .eyebrow {
    color: #ffbed8;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .98;
    margin: 0 0 24px;
    letter-spacing: -0.05em;
}

.hero p {
    font-size: 1.18rem;
    max-width: 680px;
    color: rgba(255, 255, 255, .86);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 5;
}

.hero-card {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, .95);
    color: var(--gray-900);
    padding: 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 8px solid var(--primary);
}

.hero-card h2 {
    margin: 0 0 16px;
}

.hero-card ul {
    padding-left: 20px;
    margin: 0;
}

.hero-card li {
    margin: 12px 0;
    font-weight: 700;
}

/* =========================
   TARJETAS 01, 02, 03, 04
   Sin montarse sobre los botones
========================= */

.stats-section {
    margin-top: 0;
    padding: 40px 0 10px;
    position: relative;
    z-index: 1;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 2rem;
}

.stat-card span {
    font-weight: 800;
}

/* =========================
   SECCIONES GENERALES
========================= */

.section {
    padding: 105px 0;
}

.section.alt {
    background: var(--gray-100);
}

.section.dark {
    background: var(--black);
    color: var(--white);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
}

.section p {
    color: var(--gray-700);
    font-size: 1.02rem;
}

.dark p {
    color: rgba(255, 255, 255, .78);
}

.badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.badge-row span {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
}

.image-panel {
    min-height: 360px;
    padding: 42px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.image-panel::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -80px;
    border: 34px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.panel-icon {
    font-size: 4rem;
    opacity: .7;
}

.image-panel h3 {
    font-size: 2.4rem;
    margin: 30px 0 10px;
}

.image-panel p {
    color: rgba(255, 255, 255, .84);
}

.image-panel a {
    font-weight: 900;
}

/* =========================
   SERVICIOS
========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 22px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .06);
    transition: transform .25s ease, border-color .25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-number {
    color: var(--primary);
    font-size: .85rem;
    font-weight: 900;
}

.service-card h3 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
}

.service-card p {
    margin: 0;
    color: var(--gray-700);
}

/* =========================
   METODOLOGÍA
========================= */

.timeline {
    display: grid;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 22px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
}

.timeline-item span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 900;
    font-size: 1.2rem;
}

.timeline-item h3 {
    margin: 0 0 6px;
}

.timeline-item p {
    margin: 0;
}

/* =========================
   ENTREGABLES
========================= */

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.deliverables-grid div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 20px;
    border-radius: 18px;
    font-weight: 800;
}

/* =========================
   INDUSTRIAS
========================= */

.industries {
    background: var(--white);
}

.industries-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.industries-row span {
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 800;
}

/* =========================
   CONTACTO
========================= */

.contact-section {
    padding: 105px 0;
    background: linear-gradient(180deg, var(--gray-100), var(--white));
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 54px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin: 0 0 18px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.contact-list a,
.contact-list span {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

.hidden-field {
    display: none !important;
}

.form-note {
    margin: 0;
    font-size: .9rem;
    color: var(--gray-700);
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}

.alert.success {
    background: #e9f8ef;
    color: #146c2e;
}

.alert.error {
    background: #ffeaea;
    color: #a40000;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--black);
    color: var(--white);
    padding: 54px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 26px;
}

.footer-logo {
    width: 90px;
    background: var(--white);
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 12px;
}

.footer a {
    display: block;
    color: rgba(255, 255, 255, .75);
    margin-top: 8px;
}

.footer strong {
    display: block;
    margin-bottom: 10px;
}

.copy {
    text-align: center;
    color: rgba(255, 255, 255, .55);
    padding-top: 26px;
    font-size: .9rem;
}

/* =========================
   BOTONES FLOTANTES
========================= */

.floating-buttons {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.whatsapp-float {
    background: #25d366;
    color: var(--white);
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    transition: transform .2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
}

.scroll-top {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transition: transform .2s ease, background .2s ease;
}

.scroll-top:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

/* =========================
   ANIMACIONES
========================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: .12s;
}

.delay-2 {
    transition-delay: .22s;
}

.delay-3 {
    transition-delay: .32s;
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 920px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 78px;
        right: 4%;
        left: 4%;
        background: var(--white);
        border: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
        border-radius: 18px;
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 95px;
    }

    .hero-grid,
    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 32px 0 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE CELULAR
========================= */

@media (max-width: 640px) {
    .brand img {
        width: 50px;
        height: 50px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand small {
        font-size: .66rem;
    }

    .hero {
        padding: 125px 0 75px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-card {
        padding: 26px;
    }

    .stats-section {
        padding-top: 28px;
    }

    .stats-grid,
    .services-grid,
    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 22px;
    }

    .section,
    .contact-section {
        padding: 72px 0;
    }

    .floating-buttons {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .whatsapp-float {
        min-height: 50px;
        padding: 12px 16px;
        font-size: .95rem;
    }
}
