:root {
    --bg-body: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-alt: #f3f4f6;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --accent: #16a34a;

    --text-main: #0f172a;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;

    --border-subtle: #e5e7eb;
    --border-strong: #d1d5db;

    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --shadow-soft: 0 22px 55px rgba(15, 23, 42, 0.09);

    --container-width: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, var(--bg-header), rgba(255, 255, 255, 0.9), transparent);
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 88px;    /* LOGO MÁS GRANDE */
    height: 88px;
    object-fit: contain;
}

.logo-texts {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 1.15rem;
}

.logo-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Nav */

.nav {
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.15rem;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s ease-out;
}

.nav-list a:hover {
    color: var(--text-main);
}

.nav-list a:hover::after {
    width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.27rem;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 1.1rem;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
}

/* Hero */

.hero {
    padding: 4.5rem 0 3.5rem;
}

/* Texto arriba, carrusel abajo */
.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    align-items: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.hero-eyebrow.small {
    font-size: 0.72rem;
}

.hero-text {
    max-width: 900px; /* ~10 de 12 columnas */
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.accent {
    color: var(--primary);
}

.hero-subtitle {
    margin: 0 auto 1.7rem;   /* centramos el bloque */
    color: var(--text-muted);
    max-width: 42rem;
    font-size: 0.98rem;
    text-align: center;      /* centramos el texto */
}


.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.9rem;
    justify-content: center;
}

/* Botones */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 55px rgba(37, 99, 235, 0.55);
}

.btn-ghost {
    background: #ffffff;
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.btn-ghost:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.btn-full {
    width: 100%;
}

/* Hero badges */

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.35);
}

.badge i {
    color: var(--primary);
}

/* Hero media / carrusel */

.hero-media {
    width: 100%;
}

.hero-card {
    width: 100%;
    max-width: 1000px;  /* carrusel grande */
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.1rem 1.2rem;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-subtle);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.hero-chip.secondary {
    background: #eff6ff;
    color: var(--text-muted);
}

/* Carrusel */

.carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0b1120;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-out;
}

.carousel-slide {
    min-width: 100%;
}

/* ?? AQUÍ EL CAMBIO IMPORTANTE: imagen a ancho completo y altura automática, sin recorte */
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.carousel-control.prev {
    left: 0.7rem;
}

.carousel-control.next {
    right: 0.7rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.4rem 0.1rem;
    background: #ffffff;
}

.carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--primary);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-note i {
    color: var(--accent);
}

/* Sections base */

.section {
    padding: 4.2rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-inner-wide {
    max-width: 980px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 2.4rem;
}

.section-header.center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.section-eyebrow {
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Pill cards */

.pill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.pill-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.2rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    font-size: 0.9rem;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.pill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    border-color: rgba(37, 99, 235, 0.45);
}

.pill-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: var(--primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.pill-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.pill-card p {
    margin: 0;
    color: var(--text-muted);
}

/* Columns */

.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.section-subtitle {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.section-subtitle i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.check-list {
    margin: 0 0 1.6rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.check-list li {
    margin-bottom: 0.35rem;
}

/* Sectores */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.sector-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.3rem 1.3rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    text-align: left;
    font-size: 0.9rem;
}

.sector-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.7rem;
}

.sector-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.sector-card p {
    margin: 0;
    color: var(--text-muted);
}

/* Steps */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.step-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.3rem 1.2rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    font-size: 0.9rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    color: var(--text-muted);
}

/* FAQ */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
}

.faq-question span {
    margin-right: 0.8rem;
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--text-soft);
    transition: transform 0.15s ease-out;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding: 0 1rem;
}

.faq-item.open .faq-answer {
    padding-bottom: 0.9rem;
}

.faq-answer p {
    margin: 0.45rem 0 0.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contacto */

.section-contact {
    background: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-info {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-info h3 {
    margin-top: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.contact-list i {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin: 0.8rem 0 0.6rem;
}

.social-links a {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-size: 0.95rem;
}

.social-links a:hover {
    border-color: var(--primary);
}

.contact-note {
    font-size: 0.83rem;
}

.contact-form-card {
    background: #f9fafb;
    border-radius: var(--radius-xl);
    padding: 1.7rem 1.5rem 1.4rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.contact-form-card h3 {
    margin: 0 0 1rem;
}

.contact-form {
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.form-hint {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0 1.7rem;
    background: #f9fafb;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* WhatsApp floating button */

.whatsapp-floating {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 50px rgba(22, 163, 74, 0.9);
    z-index: 60;
    font-size: 1.6rem;
    animation: pulse 1.6s infinite;
}

.whatsapp-floating:hover {
    transform: translateY(-1px);
    box-shadow: 0 26px 60px rgba(22, 163, 74, 1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */

@media (max-width: 1024px) {
    .pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.6rem 0;
    }

    .nav-list {
        position: absolute;
        top: 2.8rem;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: 0.85rem 1rem;
        border-radius: 18px;
        border: 1px solid var(--border-subtle);
        min-width: 190px;
        display: none;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    }

    .nav-list.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 3.4rem;
    }

    .columns-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .logo-img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 600px) {
    .pill-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sector-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
