/* ============ ANIMACIONES (Animate.css) ============ */
/* Oculta elementos animables antes de que se disparen para evitar flash */
[data-anim]:not(.is-visible) {
    opacity: 0;
}
/* Fallback si JS está deshabilitado: muestra todo */
.no-js [data-anim] { opacity: 1 !important; }

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #002d62;
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

:root {
    --azul-fuerte: #002d62;
    --azul-fuerte-2: #062c5c;
    --cian: #0cbdc6;
    --cian-oscuro: #0092bb;
    --gris: #6b7a90;
    --hero-from: #eaf7fb;
    --hero-to:   #b4e4ee;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn-primary {
    background: linear-gradient(90deg, var(--cian-oscuro), var(--cian));
    color: #fff;
    box-shadow: 0 6px 18px rgba(12,189,198,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12,189,198,0.5); }

/* ============ HEADER ============ */
.site-header {
    background: var(--azul-fuerte);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.brand-mark { height: 38px; width: auto; filter: brightness(0) invert(1); }
.main-nav ul {
    display: flex;
    gap: 36px;
}
.main-nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: color .2s ease;
}
.main-nav a:hover { color: var(--cian); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf7fb 0%, #cceaf1 60%, #b3e2ec 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/Fondo_Inicio.png') no-repeat right center / contain;
    z-index: 0;
    opacity: 1;
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 60px 24px 90px;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-content { max-width: 540px; }
.hero-logo { width: 260px; margin-bottom: 24px; }
.hero h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    color: var(--azul-fuerte);
    margin: 0 0 16px;
    font-weight: 700;
}
.hero p {
    color: var(--azul-fuerte);
    font-size: 14px;
    margin: 0 0 24px;
    max-width: 460px;
    opacity: .85;
}

/* ============ FEATURES ============ */
.features { padding: 60px 0 40px; }
.section-title-pill {
    background: var(--azul-fuerte);
    color: #fff;
    text-align: center;
    padding: 20px 32px;
    border-radius: 8px;
    max-width: 560px;
    margin: 0 auto 50px;
}
.section-title-pill h2 {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.feature-card {
    background: linear-gradient(180deg, #0cbdc6 0%, #0092bb 100%);
    color: #fff;
    border-radius: 6px;
    padding: 68px 14px 22px;
    position: relative;
    text-align: left;
    min-height: 230px;
}
.feature-icon {
    position: absolute;
    top: -28px;
    left: 14px;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon img { width: 100%; height: auto; }
.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}
.feature-card p {
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
    opacity: .95;
}

/* ============ APP & ADMIN SECTIONS ============ */
.app-section, .admin-section {
    padding: 70px 0;
}
.app-inner, .admin-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.app-visual { text-align: center; }
.app-visual img { max-width: 320px; margin: 0 auto; }
.admin-visual { text-align: center; }
.admin-visual img { max-width: 480px; margin: 0 auto; }

.app-copy h2, .admin-copy h2 {
    font-size: clamp(28px, 3vw, 38px);
    color: var(--azul-fuerte);
    margin: 0 0 16px;
    font-weight: 700;
    line-height: 1.15;
}
.app-copy p, .admin-copy p {
    color: var(--gris);
    font-size: 14px;
    margin: 0;
    max-width: 420px;
}

.stores {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.stores img { width: 26px; height: 26px; border-radius: 6px; }
.stores span {
    background: #002d62;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}

/* ============ DARK BLOCK (pricing + steps) ============ */
.dark-block {
    background: var(--azul-fuerte) url('../img/Fondo2.png') no-repeat center center / cover;
    color: #fff;
    padding: 80px 0 90px;
}
.pricing { text-align: center; margin-bottom: 80px; }
.pricing h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin: 0 0 40px;
    font-weight: 700;
}
.pricing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.pricing-item { text-align: center; }
.pricing-amount {
    font-size: 42px;
    color: var(--cian);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.pricing-highlight { color: var(--cian); }
.pricing-label {
    font-size: 13px;
    color: #fff;
    opacity: .9;
    line-height: 1.3;
}
.pricing-arrow {
    color: var(--cian);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

/* Steps */
.steps { text-align: center; }
.pill {
    display: inline-block;
    background: var(--cian);
    color: #fff;
    padding: 6px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.steps h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin: 0 0 48px;
    font-weight: 700;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}
.step h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px;
    font-weight: 700;
}
.step p {
    color: #cfe4ea;
    font-size: 13px;
    margin: 0 0 10px;
    line-height: 1.55;
}
.step ul {
    color: #cfe4ea;
    font-size: 13px;
    padding-left: 0;
    margin: 0 0 10px;
}
.step ul li::before { content: "° "; }
.step-highlight { color: var(--cian) !important; font-weight: 500; margin-top: 12px !important; }
.step-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cian);
    margin-bottom: 20px;
}
.steps-cta { text-align: center; margin-top: 48px; }

/* ============ CONTACT ============ */
.contact-section {
    padding: 70px 0;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #e6f4f8 100%);
}
.contact-title {
    font-size: clamp(28px, 3vw, 38px);
    color: var(--azul-fuerte);
    margin: 0 0 40px;
    font-weight: 700;
    line-height: 1.15;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-map iframe { display: block; width: 100%; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--azul-fuerte);
    font-size: 14px;
}
.contact-item img { width: 26px; height: 26px; object-fit: contain; }

.contact-form { margin-top: 26px; display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cddbe4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--azul-fuerte);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--cian);
    box-shadow: 0 0 0 3px rgba(12,189,198,0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { justify-self: start; }

.form-msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.form-ok { background: #e0f7ea; color: #17663a; border: 1px solid #a7dcbc; }
.form-err { background: #fdecec; color: #a52424; border: 1px solid #f0b3b3; }

/* ============ FOOTER ============ */
.site-footer {
    background: #fff;
    border-top: 1px solid #e6ecf1;
    padding-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 20px 24px 30px;
    align-items: start;
}
.footer-brand img { max-width: 180px; }
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--azul-fuerte);
    font-size: 14px;
}
.footer-nav a:hover { color: var(--cian); }
.footer-contact p {
    margin: 0 0 4px;
    color: var(--azul-fuerte);
    font-size: 14px;
}
.footer-bottom {
    border-top: 1px solid #eef2f6;
    padding: 16px 0;
    text-align: center;
    color: #6b7a90;
}
.footer-bottom small { font-size: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--azul-fuerte);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 400px; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
    }
    .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav a { display: block; padding: 12px 0; }

    .hero-bg { opacity: .25; }
    .hero-inner { padding: 40px 24px 60px; min-height: auto; }
    .hero-logo { width: 200px; }

    .app-inner, .admin-inner, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .admin-inner { direction: ltr; }
    .admin-visual { order: 2; }
    .app-copy p, .admin-copy p { margin-left: auto; margin-right: auto; }
    .stores { justify-content: center; }

    .pricing-row { flex-direction: column; gap: 20px; }
    .pricing-arrow { transform: rotate(90deg); }

    .steps-grid { grid-template-columns: 1fr; gap: 32px; }

    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-nav { align-items: center; }
    .footer-brand img { margin: 0 auto; }
}
@media (max-width: 520px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 12px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form .btn { justify-self: stretch; text-align: center; }
    .hero h1 { font-size: 26px; }
    .pricing-amount { font-size: 36px; }
}
