/* --- RESET & TOKENS UNIFICADOS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #a855f7 50%, #ec4899 100%);
    --accent: #a855f7;
    --accent-soft: #f3e8ff;
    --accent-ink: #7e22ce;
    --bg-light: #f9fafb;
    --surface: #f9f9fb;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --card-radius: 20px;
    --pill-radius: 999px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 30px rgba(168, 85, 247, 0.12);
    --section-pad-y: 80px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- SECCIÓN CANÓNICA: mismo ritmo vertical y mismo ancho en todo el sitio --- */
.section-pad {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
    scroll-margin-top: 70px;
}
@media (min-width: 768px) {
    .section-pad {
        padding-top: 112px;
        padding-bottom: 112px;
    }
}
.wrap {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- ENCABEZADOS: un solo patrón eyebrow + título + bajada --- */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.section-title {
    font-size: clamp(1.65rem, 3.4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.4rem;
    text-wrap: balance;
}
.section-sub {
    color: var(--text-muted);
    max-width: 600px;
    margin-top: 0.6rem;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}
.header-centered {
    text-align: center;
}
.header-centered .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* --- TARJETA CANÓNICA: mismo radio, borde y hover en Servicios / Diferenciadores / Contacto --- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--card-shadow-hover);
}
.card-quiet {
    box-shadow: var(--card-shadow);
}

/* Número fantasma + número visible: un solo color de sistema */
.ghost-num {
    position: absolute;
    top: 10px;
    right: 15px;
    user-select: none;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: #f3f4f6;
    transition: color 0.3s ease;
}
.group:hover .ghost-num {
    color: var(--accent-soft);
}
.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
}
.ghost-num-lg {
    font-family: var(--font-display);
    font-size: 180px;
    font-weight: 700;
    color: var(--text-dark);
    user-select: none;
    line-height: 1;
}

/* Icono canónico */
.icon-badge {
    position: relative;
    z-index: 2;
    margin-bottom: 1.25rem;
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.2rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.group:hover .icon-badge {
    background: var(--primary-gradient);
    color: #fff;
}

/* Pills y tags: una sola forma */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: var(--pill-radius);
    background: #f3f3f5;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #f3f3f5;
    border-radius: var(--pill-radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .grid-2 {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 56px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-display);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* --- BOTONES: un solo sistema pill --- */
.btn-gradient,
.btn-outline,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--pill-radius);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: 0;
}

.btn-gradient,
.btn-submit {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.28);
}
.btn-gradient:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(168, 85, 247, 0.32);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(12, 8, 24, 0.72), rgba(12, 8, 24, 0.72)), url('img/Portada.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
}

.hero-content {
    max-width: 800px;
    color: var(--bg-light);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5.4vw, 3.9rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero-content p {
    font-size: 1.12rem;
    font-family: var(--font-body);
    color: rgba(249, 250, 251, 0.86);
    margin-bottom: 32px;
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- SOBRE NOSOTROS --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
}
@media (min-width: 560px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.feature-item h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.feature-item p {
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-size: 0.94rem;
}

.about-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    padding: 28px;
}

/* --- FORMULARIO CONTACTO --- */
.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.field-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}
.field-input::placeholder {
    color: #9ca3af;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: var(--card-radius);
    margin-bottom: 15px;
}

/* --- FOOTER --- */
.footer {
    background-color: #0c0818;
    color: #b8b4c7;
    padding: 56px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

/* Móvil: todo centrado */
.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-grid .logo {
    justify-content: center;
}

.footer-desc {
    margin-top: 15px;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 46ch;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.footer h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.footer-links li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.footer-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-links a:hover {
    color: #fff;
}

/* sm en adelante: logo/desc a la izquierda, contacto a la derecha */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
    }
    .footer-grid > div:first-child {
        align-items: flex-start;
        text-align: left;
    }
    .footer-grid > div:last-child {
        align-items: flex-end;
        text-align: right;
    }
    .footer-grid .logo {
        justify-content: flex-start;
    }
    .footer-desc {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    .footer-grid > div:last-child h4 {
        text-align: right;
        width: 100%;
    }
    .footer-links {
        align-items: flex-end;
    }
    .footer-links li {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
