/* =========================
   RESET BÁSICO
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827; /* gris muy oscuro */
    background-color: #f3f4f6; /* gris claro */
    line-height: 1.6;
}

/* =========================
   UTILIDADES GENERALES
   ========================= */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: #ffffff;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.section-header p {
    color: #4b5563;
    font-size: 0.98rem;
}

/* =========================
   BOTONES
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 20px 34px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #1f2937;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =========================
   HEADER Y NAV
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 244, 246, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at 10% 0%, #1d4ed8, #22c55e);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.logo-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Nav */

.main-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
}

.main-nav a:hover {
    color: #111827;
}

.main-nav .nav-highlight {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
}

.main-nav .nav-highlight:hover {
    background: #e5e7eb;
}

/* Nav toggle (móvil) */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

/* =========================
   HERO
   ========================= */

.hero {
    padding: 5rem 0 4rem 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.9);
    border: 1px solid #bfdbfe;
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-bullets {
    list-style: none;
    color: #4b5563;
    font-size: 0.92rem;
}

.hero-bullets li + li {
    margin-top: 0.15rem;
}

/* Hero imagen */

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    background: #0f172a;
}

.hero-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    opacity: 0.94;
}

.hero-tag {
    position: absolute;
    left: 1rem;
    right: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.hero-tag-top {
    top: 0.9rem;
}

.hero-tag-bottom {
    bottom: 0.9rem;
}

.hero-tag-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    color: #a5b4fc;
}

.hero-tag-text {
    font-size: 0.8rem;
}

/* =========================
   LAYOUT COLUMNAS
   ========================= */

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.three-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* =========================
   TARJETAS
   ========================= */

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.card-list h3,
.card-feature h3,
.card-benefit h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.card-list ul {
    list-style: none;
    color: #4b5563;
    font-size: 0.95rem;
}

.card-list ul li + li {
    margin-top: 0.35rem;
}

.card-note {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: #6b7280;
}

/* Card highlight */

.highlight {
    background: linear-gradient(135deg, #1d4ed8, #22c55e);
    color: #f9fafb;
    border: none;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
}

.highlight h3 {
    color: #ffffff;
}

.highlight ul {
    list-style: none;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.highlight ul li + li {
    margin-top: 0.35rem;
}

/* Checklist */

.checklist {
    list-style: none;
    font-size: 0.95rem;
    color: #374151;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Beneficios */

.card-benefit p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Testimonios */

.card-testimonial {
    position: relative;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 0.75rem;
}

.testimonial-author {
    font-size: 0.86rem;
    color: #6b7280;
}

/* Checklist bloque */

.checklist-block {
    margin-top: 1.75rem;
    gap: 2.25rem;
}

.checklist-block h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* Resumen checklist */

.checklist-summary {
    margin-top: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.97rem;
    color: #374151;
}

.checklist-summary p + p {
    margin-top: 0.6rem;
}

.checklist-summary .btn {
    margin-top: 1rem;
}

/* =========================
   FORMULARIO CTA
   ========================= */

.section-cta {
    background: radial-gradient(circle at top left, #bfdbfe 0, #eff6ff 30%, #f9fafb 70%);
}

.card-form {
    padding: 1.75rem 1.5rem;
}

.card-form h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #111827;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.87rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: #f9fafb;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
    background: #ffffff;
}

.form-note {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.form-divider {
    text-align: center;
    margin: 0.9rem 0 0.65rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* =========================
   FAQ
   ========================= */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.2rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #111827;
}

.faq-item p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    background: #f9fafb;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #6b7280;
}

.footer-right a {
    text-decoration: none;
    color: #6b7280;
    margin-left: 0.9rem;
}

.footer-right a:hover {
    color: #111827;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-image-card {
        max-width: 420px;
        margin: 0 auto;
        margin-top: 1rem;
    }

    .two-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .three-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 56px;
        right: 0;
        left: 0;
        padding: 0.75rem 1.25rem 1rem 1.25rem;
        flex-direction: column;
        background: rgba(243, 244, 246, 0.98);
        border-bottom: 1px solid rgba(209, 213, 219, 0.8);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.18s ease-out;
    }

    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner {
        padding: 0.75rem 0;
    }

    .hero {
        padding-top: 4rem;
    }
}
