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

body {
    font-family: 'Poppins', sans-serif;
    color: #111827;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar personalizado - Fino y rosado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e76f51 0%, #99582a 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #e76f51 rgba(248, 250, 252, 0.5);
}

/* Header SIMPLE - Sin flexbox complicado */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 100;
}

.header-logo {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
}

.header-button {
    position: fixed;
    right: 28px;
    top: 14px;
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(231, 111, 81, 0.3);
    font-size: 14px;
    z-index: 101;
}

.header-button:hover {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%);
}

/* Hero — overlay naranja un poco más liviano + blur suave en la foto */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5.25rem 2rem 4.75rem;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -12px;
    z-index: -2;
    background: url('/imagenes/fondo-landing.png') center center / cover no-repeat;
    filter: blur(4px) brightness(1.06);
    transform: scale(1.02);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Antes ~0.85 / 0.80 — bajado un toque para que respire texto y formulario */
    background: linear-gradient(135deg, rgba(231, 111, 81, 0.72) 0%, rgba(153, 88, 42, 0.66) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.38fr 0.92fr;
    gap: 2.25rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.1rem;
    line-height: 1.1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 0.85rem;
    opacity: 0.95;
}

.hero-tagline {
    --tagline-success: #1DB954;
    --tagline-success-light: #1ED760;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    margin: 0 0 1rem;
    padding: 0.55rem 1.1rem 0.55rem 1rem;
    max-width: 38rem;
    font-size: clamp(1.05rem, 2.1vw, 1.25rem);
    line-height: 1.35;
    color: #fff;
    background: linear-gradient(135deg, rgba(8, 72, 38, 0.72) 0%, rgba(29, 185, 84, 0.38) 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero-tagline__lead {
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.98);
}

.hero-tagline__accent {
    font-weight: 800;
    color: var(--tagline-success-light);
    letter-spacing: 0.02em;
    text-shadow:
        0 0 18px rgba(30, 215, 96, 0.55),
        0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    margin: 0 0 0.85rem;
    padding: 0;
    max-width: 38rem;
}

.hero-trust {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 1rem;
    margin: 0;
    padding: 0;
    max-width: 38rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.hero-benefit > span:last-child {
    min-width: 0;
}

.hero-benefit__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.hero-benefit__icon svg {
    width: 16px;
    height: 16px;
}

.hero-benefit__icon--img {
    padding: 4px;
    background: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-benefit__icon--img img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.btn-hero {
    background: white;
    color: #e76f51;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.hero-cta-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Form card */
.form-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(2, 6, 23, 0.28);
}

.form-card h3 {
    color: #e76f51;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-card-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.form-email-wrap,
.form-phone-wrap {
    margin-bottom: 12px;
}

.form-email-wrap .form-input,
.form-phone-wrap .form-input {
    margin-bottom: 0;
}

.form-email-wrap .form-code-hint,
.form-phone-wrap .form-code-hint {
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.3;
}

.form-input:focus {
    border-color: #f4a261;
    box-shadow: 0 0 0 4px rgba(236,72,153,.12);
    outline: none;
}

.form-submit {
    background: linear-gradient(135deg, #e76f51, #99582a);
    border: none;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.form-submit:hover {
    filter: saturate(1.05);
}

.form-muted {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.form-code-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 0;
}

.success-message {
    display: none;
    padding: 18px 0;
    text-align: center;
}

.success-message.show {
    display: block;
}

.ok-anim {
    display: grid;
    place-items: center;
    gap: 8px;
}

.ok-anim__svg {
    width: 80px;
    height: 80px;
}

.ok-anim__circle {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: .3;
    animation: ok-circle .6s ease forwards;
}

.ok-anim__check {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ok-check .5s .4s ease forwards;
}

.ok-anim__title {
    color: #111827;
    font-weight: 800;
}

.ok-anim__desc {
    color: #475569;
    font-size: 14px;
}

@keyframes ok-circle {
    from { stroke-dasharray: 0 999; }
    to { stroke-dasharray: 999 0; }
}

@keyframes ok-check {
    to { stroke-dashoffset: 0; }
}

.g-recaptcha {
    transform: scale(0.96);
    transform-origin: left top;
    margin-top: 8px;
}

/* Features */
.features {
    padding: 5rem 2rem;
    background: white;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 1px solid #f3f4f6;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #e0f2fe;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 15px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.feature-card p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Sección sistema */
.promo-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
}

.system-fit {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 2.75rem 2.5rem;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: center;
}

.system-fit__content h2 {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 0.9rem 0;
    line-height: 1.2;
}

.system-fit__content p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 1.25rem;
}

.system-fit__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.system-fit__list li {
    position: relative;
    padding-left: 1.2rem;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.55;
}

.system-fit__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #4f46e5;
}

.system-fit__highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4f46e5 !important;
    margin-bottom: 0 !important;
}

.system-fit__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-fit__image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    border-radius: 14px;
    border: none;
    box-shadow: none;
}

/* Puente ERP + negocio real (después del promo verde) */
.erp-bridge {
    position: relative;
    padding: 5rem 2rem 5.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(231, 111, 81, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #fffdfb 45%, #fef7f3 100%);
}

.erp-bridge__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.55;
}

.erp-bridge__glow--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -120px;
    right: -80px;
    background: rgba(244, 162, 97, 0.35);
}

.erp-bridge__glow--2 {
    width: min(360px, 60vw);
    height: min(360px, 60vw);
    bottom: -100px;
    left: -60px;
    background: rgba(16, 185, 129, 0.12);
}

.erp-bridge__wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.erp-bridge__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c2410c;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 247, 237, 0.98) 100%);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(231, 111, 81, 0.22);
    box-shadow: 0 4px 20px rgba(231, 111, 81, 0.08);
    margin-bottom: 1.25rem;
}

.erp-bridge__title {
    font-size: clamp(1.65rem, 4.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 1.25rem;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}

.erp-bridge__lead {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    line-height: 1.75;
    color: #475569;
    max-width: 52ch;
    margin: 0 auto 2.75rem;
}

.erp-bridge__lead strong {
    color: #c2410c;
    font-weight: 700;
}

.erp-bridge__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin: 0;
    padding: 0;
}

.erp-bridge__card {
    background: linear-gradient(145deg, #ffffff 0%, #fffaf8 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    padding: 1.65rem 1.5rem 1.75rem;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 12px 28px -8px rgba(231, 111, 81, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.erp-bridge__card:hover {
    transform: translateY(-6px);
    border-color: rgba(231, 111, 81, 0.28);
    box-shadow:
        0 12px 24px -8px rgba(15, 23, 42, 0.08),
        0 20px 40px -12px rgba(231, 111, 81, 0.18);
}

.erp-bridge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #e76f51 0%, #c2410c 100%);
    box-shadow: 0 8px 20px rgba(231, 111, 81, 0.35);
}

.erp-bridge__icon svg {
    width: 26px;
    height: 26px;
}

.erp-bridge__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.erp-bridge__card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

@media (max-width: 900px) {
    .erp-bridge__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .erp-bridge {
        padding: 3.25rem 1.25rem 3.75rem;
    }
    .erp-bridge__lead {
        margin-bottom: 2rem;
    }
}

/* Testimonios */
.testimonials-section {
    padding: 5rem 2rem;
    background: #f8fafc;
}

.testimonials-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin: 0 0 3rem 0;
}

.testimonials-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.testimonials-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
    touch-action: pan-x;
    cursor: grab;
}

.testimonials-carousel:active {
    cursor: grabbing;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar svg {
    width: 100%;
    height: 100%;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e76f51;
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.9rem;
    color: #64748b;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonials-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #e76f51;
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #e76f51 0%, #99582a 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding-top: 5.75rem;
        align-items: flex-start;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-text h1 {
        align-self: center;
        text-align: center;
        width: 100%;
    }
    .hero-text p {
        text-align: left;
        width: 100%;
    }
    .hero-tagline,
    .hero-benefits,
    .hero-trust {
        max-width: none;
        width: 100%;
    }
    .hero-text .btn-hero {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hero-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.75rem;
    }
    .hero-benefit {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    .hero-benefit__icon {
        width: 46px;
        height: 46px;
    }
    .hero-benefit__icon--img img {
        width: 30px;
        height: 30px;
    }
    .hero {
        padding: 5.75rem 1rem 4rem;
        align-items: flex-start;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-section {
        padding: 3rem 1.5rem;
    }
    .testimonials-carousel-container {
        padding: 0 1rem;
    }
    .testimonials-carousel {
        gap: 1.5rem;
    }
    .header-button {
        right: 15px;
        top: 12px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .header-logo {
        left: 15px;
    }
    .promo-section {
        padding: 3rem 1rem;
    }
    .system-fit {
        grid-template-columns: 1fr;
        padding: 1.8rem 1.2rem;
        gap: 1.4rem;
        border-radius: 18px;
    }
    .system-fit__content h2 {
        font-size: 1.55rem;
        text-align: left;
    }
    .system-fit__content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .system-fit__list li {
        font-size: 0.94rem;
    }
    .system-fit__highlight {
        font-size: 1rem;
    }
    .system-fit__image {
        max-width: 100%;
    }
}
