:root {
    --primary: #2563eb;
    --secondary: #0f172a;
    --accent: #38bdf8;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1180px;
    margin: auto;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 24px;
    color: var(--muted);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    max-width: 1180px;
    margin: auto;
    padding: 80px 22px;
    display: grid;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    color: var(--secondary);
    margin-bottom: 22px;
}

.hero p,
.section-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--primary);
    color: var(--white);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn.secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
}

.hero-mockup {
    animation: float 5s ease-in-out infinite;
}

.browser {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.browser-top {
    height: 48px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
}

.browser-top span {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
}

.mockup-content {
    padding: 28px;
}

.mockup-title {
    width: 70%;
    height: 28px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 12px;
    margin-bottom: 24px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.mockup-grid div {
    height: 110px;
    background: #e0f2fe;
    border-radius: 16px;
}

.mockup-line {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-bottom: 12px;
}

.mockup-line.short {
    width: 60%;
}

.section {
    max-width: 1180px;
    margin: auto;
    padding: 70px 22px;
}

.section h2 {
    font-size: clamp(32px, 5vw, 46px);
    color: var(--secondary);
    margin-bottom: 16px;
}

.dark {
    max-width: none;
    background: var(--secondary);
    color: var(--white);
}

.dark h2 {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.cards-grid,
.benefits-grid,
.plans-grid {
    max-width: 1180px;
    margin: 34px auto 0;
    display: grid;
    gap: 20px;
}

.benefits-grid {
    grid-template-columns: repeat(2, 1fr);
}

.benefits-grid div,
.card,
.plan {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    border: 1px solid var(--border);
}

.benefits-grid div {
    font-weight: 700;
    text-align: center;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card h3,
.plan h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.card p,
.plan li {
    color: #cbd5e1;
}

.success-case {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 70px;
}

.success-case p {
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 760px;
}

.plan {
    position: relative;
}

.plan ul {
    list-style: none;
    margin: 22px 0;
}

.plan li {
    color: var(--text);
    margin-bottom: 12px;
}

.plan li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
    margin-right: 8px;
}

.plan.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 16px;
    outline: none;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.alert-success {
    margin-top: 20px;
    background: #dcfce7;
    color: #166534;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
}

.footer {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 42px 22px;
}

.footer p {
    color: #cbd5e1;
    margin: 8px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: row;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form {
        max-width: 680px;
    }
}


.client-showcase {
    max-width: 1180px;
    margin: auto;
    padding: 0 22px 70px;
}

.client-card {
    background: white;
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.client-card h2 {
    margin: 15px 0;
    font-size: 36px;
    color: var(--secondary);
}

.client-card p {
    max-width: 700px;
    color: var(--muted);
    margin-bottom: 24px;
}

.client-card-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.client-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.client-preview img {
    width: 100%;
    display: block;
    transition: transform 0.35s ease;
}

.client-card:hover .client-preview img {
    transform: scale(1.04);
}

@media (min-width: 900px) {
    .client-card-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.why-grid {
    margin-top: 40px;
    display: grid;
    gap: 24px;
}

.why-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-card h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 22px;
}

.why-card p {
    color: var(--muted);
    line-height: 1.6;
}

@media (min-width: 768px) {

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

.projects-section {
    padding-top: 30px;
}

.projects-grid {
    margin-top: 40px;
    display: grid;
    gap: 26px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 1px solid var(--border);
}

.project-content {
    padding: 22px;
}

.project-content span {
    display: inline-block;
    color: var(--primary);
    background: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.project-card {
    min-height: 360px;
}

.project-content {
    padding: 18px 20px 22px;
}

.project-content h3 {
    color: var(--secondary);
    font-size: 22px;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--muted);
    font-size: 15px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .project-card {
        min-height: 320px;
    }

 .project-card img {
    height: 180px;
}
    .project-content {
        padding: 16px;
    }

    .project-content h3 {
        font-size: 19px;
    }

    .project-content p {
        font-size: 14px;
    }
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    background: #25D366;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 10px 25px rgba(0,0,0,.25);

    z-index: 9999;

    transition: all .3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}


/* ==========================
   HERO VISUAL NUEVO
========================== */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-window {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15,23,42,.15);
    border: 1px solid #e2e8f0;
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-window-top {
    height: 52px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
}

.hero-window-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.hero-window-body {
    padding: 24px;
}

.hero-web-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.hero-logo-mini {
    width: 110px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
    );
}

.hero-menu-mini {
    display: flex;
    gap: 8px;
}

.hero-menu-mini span {
    width: 55px;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.hero-banner {
    background: linear-gradient(
        135deg,
        #2563eb,
        #38bdf8
    );

    border-radius: 18px;

    padding: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 24px;
}

.hero-title-line {
    width: 180px;
    height: 18px;
    background: rgba(255,255,255,.9);
    border-radius: 999px;
    margin-bottom: 12px;
}

.hero-text-line {
    width: 140px;
    height: 10px;
    background: rgba(255,255,255,.65);
    border-radius: 999px;
    margin-bottom: 8px;
}

.hero-text-line.short {
    width: 90px;
}

.hero-button-mini {
    width: 70px;
    height: 34px;
    background: white;
    border-radius: 999px;
}

.hero-products {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.hero-product-card {
    height: 130px;
    border-radius: 16px;
    background: #e0f2fe;
    transition: .3s;
}

.hero-product-card.active {
    background: linear-gradient(
        135deg,
        #2563eb,
        #38bdf8
    );
    transform: translateY(-8px);
}

.hero-whatsapp-mini {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.hero-whatsapp-mini span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ==========================
   HERO VISUAL PREMIUM
========================== */

.hero-window {
    position: relative;
    transform: perspective(1000px) rotateY(-4deg);
}

.hero-window::before {
    content: "DogusWeb";
    position: absolute;
    top: 96px;
    left: 44px;
    z-index: 3;
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.hero-window::after {
    content: "Landing • Catálogo • Tienda";
    position: absolute;
    top: 128px;
    left: 44px;
    z-index: 3;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: 600;
}

.hero-product-card {
    position: relative;
    overflow: hidden;
}

.hero-product-card::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
}

.hero-product-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
}

.hero-product-card.active::before,
.hero-product-card.active::after {
    background: rgba(255,255,255,.9);
}

.hero-button-mini {
    animation: pulseButton 1.8s infinite;
}

.hero-whatsapp-mini span {
    position: relative;
    animation: pulseWhatsapp 1.8s infinite;
}

.hero-whatsapp-mini span::before {
    content: "✓";
    color: white;
    font-weight: 900;
    font-size: 24px;
    position: absolute;
    top: 8px;
    left: 15px;
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes pulseWhatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.4);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(37,211,102,0);
    }
}


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

.hero-image img {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;

    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.plan-description {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 20px;
    line-height: 1.5;
}

.plan ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-link:hover {
    transform: translateY(-8px);
}

.project-link:hover h3 {
    color: var(--primary);
}