/* Variables */
:root {
    --max-width: 1344px;
    --spacing-vertical: 64px;
    --color-bg-alt: #f5f7fa;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-primary: #0d3a71;
    --color-accent: #7b3eff;
    --color-border: #e2e8f0;
    --font-base: 'Inter', sans-serif;
}

/* Texto ->inter */
p {
    font-family: var(--font-base);
    font-weight: 400;
    color: var(--color-text);
}

/* Titulares & botones -> manrope*/
h1,
h2,
h3,
h4,
.btn {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

/* cifras  -> space grotesk*/
.card__title,
.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* Global resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: var(--spacing-vertical) 0;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
}
h3,
h4 {
    margin-bottom: 16px;
}
p {
    margin-bottom: 24px;
}
.btn {
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
    padding: 26px 46px;
    border-radius: 14px;
    font-size: 1.2rem;
}
.btn--primary:hover {
    transform: scale(1.05);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 22px;
    border-radius: 14px;
}
.btn--small {
    font-size: 14px;
    padding: 8px 16px;
}
.btn--tiny {
    font-size: 13px;
    padding: 6px 12px;
}
.btn--full {
    width: 100%;
}
.btn--primary:hover,
.btn--outline:hover {
    opacity: 0.9;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: 100px;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 85%;
}
.logo {
    font-size: 32px;
    font-weight: 700;
}
.nav__list {
    display: flex;
    gap: 14px;
    font-weight: 600;
}
.nav__list li {
    list-style: none;
    font-size: 18px;
}
.nav__list a {
    padding: 8px 16px;
    border-radius: 14px;
    transition: background 0.2s;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
}
.hamburger__line {
    width: 24px;
    height: 2px;
    background: var(--color-text);
}
.header__cta {
    padding: 22px 46px;
    font-size: 1.15rem;
}

/* Nav hover effect */
.nav__list li a {
    position: relative;
    transition: color 0.3s ease;
}
.nav__list li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
.nav__list li a:hover {
    color: var(--color-primary);
}
.nav__list li a:hover::after {
    width: 100%;
}
*/


/* Grid */
.grid {
    display: grid;
    gap: 32px;
}
.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Hero base */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    animation: bgShift 10s infinite alternate;
    height: 90vh;
    background: radial-gradient(circle at center, #ffffff, #f0f4f8);
    padding-top: 10px;
}
.hero::before,
.hero::after,
.hero .shape-triangle {
    content: '';
    position: absolute;
    animation: float 8s infinite ease-in-out;
}
.hero::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
}
.hero::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    border-radius: 50%;
    background: rgba(123, 62, 255, 0.2);
}

/* Tipografía y acciones hero */
.hero__inner {
    display: grid;
    grid-template-columns: 100%;
    text-align: center;
    padding: 96px 0;
}
.hero__title {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero__subtitle {
    max-width: 85%;
    margin: 0 auto 32px;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    margin-top: 50px;
}
.hero__actions .btn {
    margin: 0 8px;
}
.hero__actions {
    margin-top: 50px;
}

/* Efecto de cursor para tipado */
.cursor {
    display: inline-block;
    font-weight: 700;
    animation: blink 0.7s steps(1) infinite;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Texto fijo estilo */
.fixed-text {
    color: var(--color-primary);
}

/* Animaciones fondo */
@keyframes bgShift {
    to {
        background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(20px) scale(1.05);
    }
}
.hero__inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 96px 24px;
    border-radius: 24px;
}
.hero__inner:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Cards */
.section__title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: var(--color-primary);
}
.section__subtitle {
    width: 80%;
    font-size: 4rem;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--color-text-secondary);
}
.section__subtitle__h3 {
    font-size: 3.4rem;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--color-text);
}
.why-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
    position: relative;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card__title {
    font-weight: 900;
    font-size: 64px;
    margin-bottom: 8px;
    position: relative;
}
.card__title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
.card__text {
    margin-top: 18px;
    font-size: 20px;
}
.card:hover .card__title::after {
    width: 50%;
}
@media (max-width: 768px) {
    .why-cards {
        grid-template-columns: 1fr;
    }
}

/* Timeline */
.timeline {
    display: flex;
    gap: 48px;
    justify-content: space-between;
}
.step {
    text-align: center;
}
.step__number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}
/* HEREEEEE */

/* Cómo trabajamos – filas estilo “Carta variada” */
.container--narrow {
    max-width: 70%;
}
.how-section {
    padding: var(--spacing-vertical) 0;
    background: var(--color-bg-alt);
}
.how-steps-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.how-row:nth-child(odd) {
    background: #fff;
}
.how-row:nth-child(even) {
    background: rgba(248, 250, 252, 0.8);
    /*background:  rgba(0, 0, 0, 0.02);*/
}

/* Cada fila/step */
.how-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    opacity: 0.3;
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    transform: translateY(20px);
    border-radius: 10px;
}
.how-row:hover {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 8px 8px rgba(37, 99, 235, 0.1);
}

/* Sección izquierda: número + título grande */
.how-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-left: 6px;
}

.step-number {
    font-size: 64px;
    font-weight: 700;
    color: #082548;
    flex-shrink: 0;
    text-align: left;
}
.step-heading {
    font-size: 42px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: left;
}
/* Sección derecha: descripción */
.step-text {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    width: 80%;
    text-align: left;
    margin-left: 80px;
}

/* Estado activo (“encendido”) */
.how-row.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive: pila en móvil */
@media (max-width: 768px) {
    .how-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .how-left {
        flex-direction: row;
        align-items: center;
    }
}

/* HEREEEEE SERVICES*/

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 8px rgba(37, 99, 235, 0.1);
}
.service-card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}
.section__subtitle {
    width: 80%;
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.service-card__list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.service-card__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.service-card__list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 26px;
    color: var(--color-primary);
    line-height: 1;
}

/* HERE END SERVICIES*/

/* Form */
/* Contenedor “card” */
.form-section {
    background: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Etiquetas fijas con asterisco */
.form-group {
    margin-bottom: 32px;
    position: relative;
}
.form-group.required label::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

/* Inputs sólo con línea inferior */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--color-border);
    border-radius: 0;
    padding: 8px 0;
    font-size: 16px;
    color: var(--color-text);
    background: transparent;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Focus: línea primaria */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

#contact {
    background: #f8fafc;
    padding: 40px 0;
}
.form-section {
    background: var(--color-bg-alt);
    border-radius: 24px;
    padding: 64px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
}

/* Botón full-width más ligero */
.btn--full {
    margin-top: 16px;
    padding: 16px 0;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-section {
        grid-template-columns: 1fr;
        padding: 32px;
    }
}

.contact-info {
    margin-left: 2rem;
    font-size: 16px;
    color: var(--color-text-secondary);
}
.contact-info a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-info a:hover {
    color: var(--color-primary);
}

/* FAQ */
/* FAQ general */
.faq-section {
    padding: var(--spacing-vertical) 0;
}
.faq {
    margin-top: 32px;
    width: 75%;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

/* Pregunta */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 16px;
    font-weight: 600;
    font-size: 18px;
    text-align: left;
    color: var(--color-text);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}
.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Icono de flecha */
.faq-question::after {
    content: '›';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

/* Respuesta oculta */
.faq-answer {
    max-height: 0; /* empezar colapsada */
    overflow: hidden;
    opacity: 0;
    padding: 0 16px; /* sólo padding horizontal */
    transition:
        max-height 0.4s ease,
        opacity 0.4s ease,
        padding 0.4s ease;
}

/* Cuando está abierto */
.faq-item.open .faq-question::after {
    transform: translateY(-60%) rotate(0deg);
}
.faq-item.open .faq-answer {
    max-height: 500px; /* lo suficientemente grande */
    opacity: 1;
    padding: 16px;
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    padding: 64px 0 32px;
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    justify-content: center;
}
.footer__bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid var(--color-border);
}
.footer__col {
    align-items: center;
    text-align: center;
}
.footer__col ul li {
    font-style: none;
    list-style: none;
    margin-top: 6px;
}
.footer__col h4 {
    font-size: 1.45rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header__inner nav {
        color: var(--color-text);
    }
    .hamburger {
        display: flex;
    }
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__subtitle {
        max-width: 100%;
        margin: 0 auto;
    }
    .form-section {
        grid-template-columns: 1fr;
    }
}
.hero__col {
    font-size: 2rem;
}
/* ============ GENERAL HEADER ============ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-desktop {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-desktop a {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px;
    transition: color 0.2s ease;
}
.nav-desktop a:hover {
    color: var(--color-primary);
}

.header__cta {
    background: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    font-weight: bold;
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}

/* ============ HAMBURGER ============ */
.hamburger {
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    background-color: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 3000;
}

.mobile-menu.open {
    transform: translateX(0);
    margin-left: auto;
}

.close-btn {
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-decoration: none;
}
.mobile-nav a:hover {
    color: var(--color-primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-desktop,
    .header__cta {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

.mobile-menu {
    background: var(--color-bg-alt) !important;
}

.mobile-nav a {
    color: var(--color-text) !important;
    font-size: 20px !important;
    display: block !important;
}

@media (max-width: 768px) {
    .hero {
        height: auto; /* deja que crezca según contenido */
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero__inner {
        padding: 40px 24px;
    }

    .hero__actions {
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .hero__title {
        min-height: 390px; /* ajusta según tamaño de fuente y texto */
    }
    .section__subtitle__h3 {
        font-size: 2.15rem;
    }
    .step-number {
        font-size: 42px;
    }
    .step-heading {
        font-size: 28px;
    }

    .how-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .step-text {
        width: 100%;
        padding: 0 6px;
        margin: auto;
        text-align: center;
    }
    .h1 {
        font-size: 40px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
}

.title-footer {
    font-size: 1.25rem;
    font-weight: 600;
}

.hero {
    padding-top: 140px; /* o más si el contenido se ve apretado */
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff, #f0f4f8);
    height: 100vh;
    padding-top: 140px; /* <--- añade esto */
}

.step-number,
.step-heading,
.step-text {
    color: #082548; /* o el más oscuro posible dentro de tu branding */
}
h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
