/* ============================================================
   WEB-COMERCIAL
   Archivo: styles.css
   Estilos generales del sitio comercial
   ============================================================ */


/* ============================================================
   VARIABLES
   ============================================================ */

:root {

    --bg-main: #080b14;
    --bg-secondary: #0d111d;
    --bg-card: #111625;
    --bg-card-hover: #151b2d;

    --border: rgba(255, 255, 255, 0.09);
    --border-light: rgba(255, 255, 255, 0.14);

    --text-primary: #f8fafc;
    --text-secondary: #a8b0c2;
    --text-muted: #747d91;

    --primary: #6c63ff;
    --primary-light: #8b85ff;
    --secondary: #22d3ee;

    --gradient-primary:
        linear-gradient(
            135deg,
            #6c63ff,
            #22d3ee
        );

    --gradient-soft:
        linear-gradient(
            135deg,
            rgba(108, 99, 255, 0.18),
            rgba(34, 211, 238, 0.08)
        );

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --shadow-small:
        0 10px 30px rgba(0, 0, 0, 0.25);

    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 24px;

    --container: 1180px;

    --transition:
        0.3s ease;
}


/* ============================================================
   RESET
   ============================================================ */

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


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(108, 99, 255, 0.15),
            transparent 35%
        ),
        var(--bg-main);

    color: var(--text-secondary);

    line-height: 1.7;

    overflow-x: hidden;
}


body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );

    z-index: -1;
}


/* ============================================================
   ELEMENTOS GENERALES
   ============================================================ */

img {

    display: block;

    max-width: 100%;
}


a {

    color: inherit;

    text-decoration: none;
}


button {

    font: inherit;
}


.container {

    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin-inline: auto;
}


/* ============================================================
   HEADER
   ============================================================ */

header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(8, 11, 20, 0.82);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


header > div,
.header-container {

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* ============================================================
   LOGO
   ============================================================ */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--text-primary);

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: -0.3px;
}


.logo::before {

    content: "";

    width: 30px;

    height: 30px;

    border-radius: 9px;

    background:
        var(--gradient-primary);

    box-shadow:
        0 0 25px
        rgba(108, 99, 255, 0.35);
}


.logo-text {

    color: var(--text-primary);
}


/* ============================================================
   NAVEGACIÓN
   ============================================================ */

nav ul {

    display: flex;

    align-items: center;

    gap: 28px;

    list-style: none;
}


nav a {

    position: relative;

    color: var(--text-muted);

    font-size: 0.82rem;

    font-weight: 600;

    transition:
        color var(--transition);
}


nav a:hover {

    color: var(--text-primary);
}


nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    border-radius: 10px;

    background:
        var(--gradient-primary);

    transition:
        width var(--transition);
}


nav a:hover::after {

    width: 100%;
}


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

.hero {

    position: relative;

    min-height:
        calc(100vh - 72px);

    display: flex;

    align-items: center;

    padding:
        110px 0 120px;

    overflow: hidden;
}


.hero::before {

    content: "";

    position: absolute;

    width: 600px;

    height: 600px;

    top: -220px;

    right: -180px;

    border-radius: 50%;

    background:
        rgba(108, 99, 255, 0.15);

    filter:
        blur(100px);

    pointer-events: none;
}


.hero::after {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    bottom: -250px;

    left: -200px;

    border-radius: 50%;

    background:
        rgba(34, 211, 238, 0.08);

    filter:
        blur(100px);

    pointer-events: none;
}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;
}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 25px;

    padding:
        7px 13px;

    border:
        1px solid
        rgba(108, 99, 255, 0.35);

    border-radius: 50px;

    background:
        rgba(108, 99, 255, 0.08);

    color:
        #aaa5ff;

    font-size:
        0.72rem;

    font-weight:
        700;

    letter-spacing:
        0.5px;

    text-transform:
        uppercase;
}


.hero-badge::before {

    content: "";

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        #22d3ee;

    box-shadow:
        0 0 10px
        rgba(34, 211, 238, 0.8);
}


.hero h1 {

    max-width: 850px;

    margin-bottom: 25px;

    color:
        var(--text-primary);

    font-size:
        clamp(
            3rem,
            7vw,
            6.5rem
        );

    font-weight:
        850;

    line-height:
        0.98;

    letter-spacing:
        -4px;
}


.hero h1 span {

    background:
        var(--gradient-primary);

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;
}


.hero p {

    max-width:
        650px;

    margin-bottom:
        35px;

    color:
        var(--text-secondary);

    font-size:
        1.08rem;

    line-height:
        1.8;
}


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

.hero-actions,
.buttons,
.cta-buttons {

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        14px;
}


.btn,
button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        50px;

    padding:
        0 24px;

    border:
        1px solid transparent;

    border-radius:
        var(--radius-small);

    cursor:
        pointer;

    font-weight:
        700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);
}


.btn-primary {

    background:
        var(--gradient-primary);

    color:
        #ffffff;

    box-shadow:
        0 10px 30px
        rgba(108, 99, 255, 0.25);
}


.btn-primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 40px
        rgba(108, 99, 255, 0.4);
}


.btn-secondary {

    background:
        rgba(255,255,255,0.03);

    border-color:
        var(--border-light);

    color:
        var(--text-primary);
}


.btn-secondary:hover {

    transform:
        translateY(-3px);

    background:
        rgba(255,255,255,0.07);

    border-color:
        rgba(255,255,255,0.22);
}


/* ============================================================
   SECCIONES
   ============================================================ */

section {

    position:
        relative;

    padding:
        110px 0;
}


section:nth-of-type(even) {

    background:
        rgba(255,255,255,0.015);
}


.section-heading {

    max-width:
        720px;

    margin:
        0 auto 60px;

    text-align:
        center;
}


.section-tag {

    display:
        inline-block;

    margin-bottom:
        14px;

    color:
        var(--secondary);

    font-size:
        0.72rem;

    font-weight:
        800;

    letter-spacing:
        2px;

    text-transform:
        uppercase;
}


.section-heading h2 {

    margin-bottom:
        18px;

    color:
        var(--text-primary);

    font-size:
        clamp(
            2rem,
            5vw,
            3.5rem
        );

    font-weight:
        800;

    line-height:
        1.05;

    letter-spacing:
        -2px;
}


.section-heading p {

    color:
        var(--text-muted);

    font-size:
        0.98rem;
}


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

.card {

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.02)
        );

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-small);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}


.card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(108, 99, 255, 0.35);

    background:
        var(--bg-card-hover);
}


/* ============================================================
   SERVICIOS
   ============================================================ */

.services,
.services-grid,
.features-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        20px;
}


.service,
.service-card,
.feature-card {

    position:
        relative;

    min-height:
        220px;

    padding:
        30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    overflow:
        hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.service::before,
.service-card::before,
.feature-card::before {

    content: "";

    position:
        absolute;

    top:
        0;

    left:
        0;

    width:
        100%;

    height:
        2px;

    background:
        var(--gradient-primary);

    opacity:
        0;

    transition:
        opacity var(--transition);
}


.service:hover,
.service-card:hover,
.feature-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(108, 99, 255, 0.3);

    box-shadow:
        var(--shadow);
}


.service:hover::before,
.service-card:hover::before,
.feature-card:hover::before {

    opacity:
        1;
}


.service-icon,
.feature-icon {

    width:
        52px;

    height:
        52px;

    display:
        grid;

    place-items:
        center;

    margin-bottom:
        22px;

    border-radius:
        14px;

    background:
        var(--gradient-soft);

    border:
        1px solid
        rgba(108,99,255,0.2);

    color:
        var(--primary-light);

    font-size:
        1.3rem;
}


.service h3,
.service-card h3,
.feature-card h3 {

    margin-bottom:
        10px;

    color:
        var(--text-primary);

    font-size:
        1.05rem;
}


.service p,
.service-card p,
.feature-card p {

    color:
        var(--text-muted);

    font-size:
        0.9rem;

    line-height:
        1.7;
}


/* ============================================================
   PORTAFOLIO / DEMOS
   ============================================================ */

.portfolio,
.projects-grid,
.demos-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        22px;
}


.project,
.project-card,
.demo-card {

    overflow:
        hidden;

    background:
        var(--bg-card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-small);

    transition:
        transform var(--transition),
        border-color var(--transition);
}


.project:hover,
.project-card:hover,
.demo-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(108,99,255,0.35);
}


.project-image,
.project-card img,
.demo-image {

    width:
        100%;

    height:
        230px;

    object-fit:
        cover;

    background:
        linear-gradient(
            135deg,
            #171c2b,
            #0e111b
        );
}


.project-content,
.project-card-content,
.demo-content {

    padding:
        25px;
}


.project-content h3,
.project-card h3,
.demo-card h3 {

    margin-bottom:
        8px;

    color:
        var(--text-primary);

    font-size:
        1.15rem;
}


.project-content p,
.project-card p,
.demo-card p {

    margin-bottom:
        20px;

    color:
        var(--text-muted);

    font-size:
        0.88rem;
}


/* ============================================================
   ETIQUETAS
   ============================================================ */

.badge,
.tag {

    display:
        inline-flex;

    align-items:
        center;

    min-height:
        26px;

    padding:
        0 10px;

    margin-bottom:
        12px;

    border:
        1px solid
        rgba(34,211,238,0.18);

    border-radius:
        50px;

    background:
        rgba(34,211,238,0.06);

    color:
        var(--secondary);

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        0.5px;

    text-transform:
        uppercase;
}


/* ============================================================
   LISTAS
   ============================================================ */

ul {

    padding-left:
        0;

    list-style:
        none;
}


section ul li {

    position:
        relative;

    margin-bottom:
        12px;

    padding-left:
        25px;

    color:
        var(--text-secondary);

    font-size:
        0.9rem;
}


section ul li::before {

    content:
        "✓";

    position:
        absolute;

    left:
        0;

    top:
        0;

    color:
        var(--secondary);

    font-weight:
        800;
}


/* ============================================================
   PRECIOS / PLANES
   ============================================================ */

.pricing,
.pricing-grid,
.plans-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        20px;

    align-items:
        stretch;
}


.plan,
.plan-card,
.price-card {

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    padding:
        32px;

    background:
        var(--bg-card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    overflow:
        hidden;
}


.plan.featured,
.plan-card.featured,
.price-card.featured {

    border-color:
        rgba(108,99,255,0.55);

    box-shadow:
        0 20px 60px
        rgba(108,99,255,0.12);

    background:
        linear-gradient(
            145deg,
            rgba(108,99,255,0.12),
            rgba(255,255,255,0.025)
        );
}


.plan h3,
.plan-card h3,
.price-card h3 {

    margin-bottom:
        12px;

    color:
        var(--text-primary);

    font-size:
        1.2rem;
}


.price {

    margin:
        10px 0 25px;

    color:
        var(--text-primary);

    font-size:
        2.5rem;

    font-weight:
        800;

    letter-spacing:
        -2px;
}


.plan .btn,
.plan-card .btn,
.price-card .btn {

    margin-top:
        auto;

    width:
        100%;
}


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

.cta,
.call-to-action {

    position:
        relative;

    padding:
        80px 40px;

    background:
        linear-gradient(
            135deg,
            rgba(108,99,255,0.16),
            rgba(34,211,238,0.06)
        );

    border:
        1px solid
        rgba(108,99,255,0.2);

    border-radius:
        var(--radius-large);

    overflow:
        hidden;

    text-align:
        center;
}


.cta::before,
.call-to-action::before {

    content: "";

    position:
        absolute;

    width:
        350px;

    height:
        350px;

    top:
        -200px;

    right:
        -100px;

    border-radius:
        50%;

    background:
        rgba(108,99,255,0.2);

    filter:
        blur(70px);
}


.cta h2,
.call-to-action h2 {

    position:
        relative;

    margin-bottom:
        15px;

    color:
        var(--text-primary);

    font-size:
        clamp(
            2rem,
            5vw,
            3.2rem
        );

    line-height:
        1.05;

    letter-spacing:
        -1.5px;
}


.cta p,
.call-to-action p {

    position:
        relative;

    max-width:
        650px;

    margin:
        0 auto 28px;

    color:
        var(--text-secondary);
}


/* ============================================================
   CONTACTO
   ============================================================ */

.contact {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        25px;
}


.contact-card {

    padding:
        30px;

    background:
        var(--bg-card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);
}


.contact-card h3 {

    margin-bottom:
        10px;

    color:
        var(--text-primary);
}


.contact-card p {

    color:
        var(--text-muted);
}


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

footer {

    margin-top:
        60px;

    padding:
        60px 0 30px;

    background:
        #05070d;

    border-top:
        1px solid
        var(--border);
}


.footer-container {

    display:
        grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap:
        40px;
}


footer h2,
footer h3 {

    margin-bottom:
        15px;

    color:
        var(--text-primary);
}


footer p {

    color:
        var(--text-muted);

    font-size:
        0.88rem;
}


footer a {

    color:
        var(--text-muted);

    transition:
        color var(--transition);
}


footer a:hover {

    color:
        var(--text-primary);
}


.footer-bottom {

    margin-top:
        45px;

    padding-top:
        25px;

    border-top:
        1px solid
        var(--border);

    text-align:
        center;

    color:
        var(--text-muted);

    font-size:
        0.78rem;
}




/* ============================================================
   SINCRONIZACIÓN CON EL HTML ACTUAL
   ============================================================ */

/* LOGO */
.logo-icon {
    width: 34px;
    height: 34px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 9px;
    filter:
        drop-shadow(0 0 10px rgba(108, 99, 255, 0.25));
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.08) rotate(-3deg);
    filter:
        drop-shadow(0 0 16px rgba(34, 211, 238, 0.4));
}

/* Evita duplicar el ícono que ya existe en el HTML */
.logo::before {
    display: none;
}

/* ETIQUETA REAL DEL HERO */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 7px 13px;
    border: 1px solid rgba(108, 99, 255, 0.35);
    border-radius: 50px;
    background: rgba(108, 99, 255, 0.08);
    color: #aaa5ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

/* DEMOS: la imagen está dentro de .demo-image */
.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CATEGORÍA DE CADA DEMO */
.demo-category {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 50px;
    background: rgba(34, 211, 238, 0.06);
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* QUÉ INCLUYE */
.includes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.include-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 70px;
    padding: 18px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.015)
    );
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.include-item:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
    background: var(--bg-card-hover);
}

.include-item span {
    flex-shrink: 0;
    color: var(--secondary);
    font-weight: 800;
}

/* PROCESO */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.process-card {
    position: relative;
    min-height: 250px;
    padding: 30px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.015)
    );
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.process-card:hover {
    transform: translateY(-7px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: var(--shadow);
}

.process-number {
    display: block;
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.process-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* CTA REAL DEL HTML */
.promotion {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(108, 99, 255, 0.16),
            rgba(34, 211, 238, 0.06)
        );
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.promotion::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -250px;
    right: -100px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.18);
    filter: blur(80px);
    pointer-events: none;
}

.promotion-container {
    position: relative;
    z-index: 1;
}

.promotion-content {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.promotion-tag {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.promotion h2 {
    margin-bottom: 18px;
    color: var(--text-primary);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -2px;
}

.promotion p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

/* CONTACTO REAL DEL HTML */
.contact-container {
    text-align: center;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    font-weight: 700;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.contact-button:hover {
    transform: translateY(-3px);
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.25);
}

/* FOOTER REAL DEL HTML */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-copy {
    align-self: end;
}

/* MENÚ MÓVIL */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* AJUSTES RESPONSIVE DE LAS CLASES DEL HTML */
@media (max-width: 1000px) {
    .includes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
    }

    .includes-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-button {
        width: 100%;
    }

    .footer-copy {
        align-self: start;
    }

    .promotion {
        padding: 75px 0;
    }

    .promotion h2 {
        font-size: 2.3rem;
        letter-spacing: -1px;
    }
}


/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes fadeUp {

    from {

        opacity:
            0;

        transform:
            translateY(25px);
    }

    to {

        opacity:
            1;

        transform:
            translateY(0);
    }
}


.hero-content {

    animation:
        fadeUp 0.8s ease both;
}


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

@media (max-width: 1000px) {

    .services,
    .services-grid,
    .features-grid {

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


    .portfolio,
    .projects-grid,
    .demos-grid {

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


    .pricing,
    .pricing-grid,
    .plans-grid {

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


    .footer-container {

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


    .hero h1 {

        font-size:
            clamp(
                3rem,
                8vw,
                5rem
            );
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 800px) {

    nav ul {

        gap:
            15px;
    }


    section {

        padding:
            80px 0;
    }


    .contact {

        grid-template-columns:
            1fr;
    }


    .footer-container {

        grid-template-columns:
            1fr 1fr;
    }
}


/* ============================================================
   MOVIL
   ============================================================ */

@media (max-width: 600px) {

    .container {

        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }


    header {

        position:
            relative;
    }


    header > div,
    .header-container {

        min-height:
            65px;
    }


    nav ul {

        display:
            none;
    }


    section {

        padding:
            70px 0;
    }


    .hero {

        min-height:
            auto;

        padding:
            90px 0 100px;
    }


    .hero h1 {

        font-size:
            3rem;

        letter-spacing:
            -2px;
    }


    .hero p {

        font-size:
            0.95rem;
    }


    .hero-actions,
    .buttons,
    .cta-buttons {

        flex-direction:
            column;

        align-items:
            stretch;
    }


    .hero-actions .btn,
    .buttons .btn,
    .cta-buttons .btn {

        width:
            100%;
    }


    .section-heading {

        margin-bottom:
            40px;
    }


    .section-heading h2 {

        font-size:
            2.2rem;

        letter-spacing:
            -1px;
    }


    .services,
    .services-grid,
    .features-grid {

        grid-template-columns:
            1fr;
    }


    .portfolio,
    .projects-grid,
    .demos-grid {

        grid-template-columns:
            1fr;
    }


    .pricing,
    .pricing-grid,
    .plans-grid {

        grid-template-columns:
            1fr;
    }


    .service,
    .service-card,
    .feature-card {

        min-height:
            auto;

        padding:
            25px;
    }


    .project-image,
    .project-card img,
    .demo-image {

        height:
            200px;
    }


    .cta,
    .call-to-action {

        padding:
            55px 25px;
    }


    .footer-container {

        grid-template-columns:
            1fr;
    }


    footer {

        margin-top:
            30px;
    }
}


/* ============================================================
   PANTALLAS MUY PEQUEÑAS
   ============================================================ */

@media (max-width: 380px) {

    .container {

        width:
            calc(100% - 24px);
    }


    .hero h1 {

        font-size:
            2.5rem;
    }


    .section-heading h2 {

        font-size:
            2rem;
    }
}

/************Agregado validar*/

/* ============================================================
   HERO REDISEÑADO
   ============================================================ */

.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 90px 0 105px;
}

.hero-container {
    width: min(calc(100% - 40px), var(--container));
}

.hero-content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}

.hero-copy {
    max-width: 760px;
}

.hero-tag {
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 25px;
    font-size: clamp(3.2rem, 6.2vw, 6rem);
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero h1 span {
    display: inline;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 32px;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust span::first-letter {
    color: var(--secondary);
}

.hero-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(108, 99, 255, 0.28),
            rgba(34, 211, 238, 0.08) 45%,
            transparent 70%
        );
    filter: blur(12px);
}

.hero-window {
    position: relative;
    z-index: 2;
    width: min(100%, 470px);
    min-height: 335px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(25,31,52,0.96),
            rgba(10,14,26,0.98)
        );
    box-shadow:
        0 35px 90px rgba(0,0,0,0.45),
        0 0 70px rgba(108,99,255,0.12);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.hero-window-bar {
    display: flex;
    gap: 7px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
}

.hero-window-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
}

.hero-window-content {
    min-height: 285px;
    padding: 42px 42px 35px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(34,211,238,0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(108,99,255,0.15),
            transparent 40%
        );
}

.hero-mini-label {
    margin-bottom: 18px;
    color: var(--secondary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.hero-mini-title {
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2px;
}

.hero-mini-lines {
    display: grid;
    gap: 9px;
    margin-top: 26px;
}

.hero-mini-lines span {
    display: block;
    width: 75%;
    height: 7px;
    border-radius: 20px;
    background: rgba(255,255,255,0.09);
}

.hero-mini-lines span:nth-child(2) {
    width: 58%;
}

.hero-mini-lines span:nth-child(3) {
    width: 42%;
}

.hero-mini-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.hero-mini-actions span {
    width: 92px;
    height: 30px;
    border-radius: 8px;
    background: var(--gradient-primary);
}

.hero-mini-actions span + span {
    width: 70px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-light);
}

.hero-floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 17px;
    border: 1px solid var(--border-light);
    border-radius: 13px;
    background: rgba(17,22,37,0.86);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(14px);
}

.hero-floating-card strong {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.hero-floating-card span {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.hero-floating-card--top {
    top: 55px;
    right: -10px;
}

.hero-floating-card--bottom {
    bottom: 45px;
    left: -10px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.hero-check {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(34,211,238,0.12);
    color: var(--secondary);
    font-weight: 800;
}

/* TABLET */
@media (max-width: 900px) {
    .hero {
        padding: 75px 0 90px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-window {
        max-width: 520px;
    }

    .hero-floating-card--top {
        right: 5%;
    }

    .hero-floating-card--bottom {
        left: 5%;
    }
}

/* MÓVIL */
@media (max-width: 600px) {
    .hero {
        padding: 65px 0 80px;
    }

    .hero-content {
        gap: 45px;
    }

    .hero h1 {
        font-size: 3.1rem;
        letter-spacing: -2.5px;
    }

    .hero-lead {
        font-size: 0.96rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .hero-window {
        min-height: 265px;
        transform: none;
    }

    .hero-window-content {
        min-height: 215px;
        padding: 30px 25px;
    }

    .hero-mini-title {
        font-size: 2rem;
    }

    .hero-floating-card--top {
        top: 18px;
        right: -3px;
    }

    .hero-floating-card--bottom {
        bottom: 10px;
        left: -3px;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-window {
        width: 100%;
    }

    .hero-floating-card {
        padding: 11px 13px;
    }
}

/* ============================================================
   CONTACTO - TARJETAS INTERACTIVAS
   CORREGIDO: contenido adaptable sin recortes
============================================================ */

.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    perspective: 1200px;
    align-items: stretch;
}

.contact-card {
    position: relative;
    min-width: 0;
    perspective: 1200px;
    animation: contactFloat 5s ease-in-out infinite;
}

.contact-card:nth-child(2) {
    animation-delay: -1.6s;
}

.contact-card:nth-child(3) {
    animation-delay: -3.2s;
}

.contact-card-inner {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 370px;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(.2,.8,.2,1);
}

.contact-card.is-flipped .contact-card-inner {
    transform: rotateY(180deg);
}

/*
   Las dos caras comparten la misma celda del grid.
   La tarjeta toma automáticamente la altura de la cara
   que necesite más espacio, evitando cortes.
*/
.contact-card-face {
    position: relative;
    grid-area: 1 / 1;

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

    min-width: 0;
    min-height: 370px;
    padding: 30px 28px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.07),
            rgba(255,255,255,0.018)
        );

    box-shadow: var(--shadow-small);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    box-sizing: border-box;
    overflow: hidden;
}

.contact-card-face::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;
    right: 10%;

    height: 2px;

    background: var(--gradient-primary);

    opacity: 0.8;
}

.contact-card-back {
    transform: rotateY(180deg);

    background:
        linear-gradient(
            145deg,
            rgba(108,99,255,0.12),
            rgba(34,211,238,0.04)
        );
}

.contact-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;
    flex-shrink: 0;

    margin-bottom: 18px;

    border-radius: 18px;

    background: var(--gradient-soft);

    border:
        1px solid
        rgba(108,99,255,0.25);

    font-size: 1.5rem;

    box-shadow:
        0 10px 30px
        rgba(108,99,255,0.12);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.contact-card-label {
    flex-shrink: 0;
    margin-bottom: 8px;

    color: var(--secondary);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 2px;
}

.contact-card h3 {
    max-width: 100%;
    margin-bottom: 10px;

    color: var(--text-primary);

    font-size: 1.15rem;

    overflow-wrap: anywhere;
    word-break: normal;
}

.contact-card p {
    max-width: 280px;
    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 0.85rem;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.contact-card .contact-email {
    max-width: 100%;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-card-button {
    display: inline-flex;

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

    min-height: 44px;

    max-width: 100%;
    padding: 0 20px;

    border:
        1px solid
        transparent;

    border-radius: var(--radius-small);

    background: var(--gradient-primary);

    color: #fff;

    font-size: 0.82rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.contact-card-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px
        rgba(108,99,255,0.3);
}

.contact-card-link {
    min-height: auto;
    padding: 0;

    border: 0;

    background: transparent;

    color: var(--text-muted);

    font-size: 0.75rem;

    cursor: pointer;
}

.contact-card-link:hover {
    color: var(--text-primary);
}

.contact-card-actions {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    width: 100%;
    margin-top: auto;
    padding-top: 4px;
}

.contact-card.is-flipped {
    animation: none;
}

.contact-card:hover {
    animation-play-state: paused;
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);

    box-shadow:
        0 15px 35px
        rgba(108,99,255,0.2);
}

.contact-card-whatsapp .contact-card-button {
    background:
        linear-gradient(
            135deg,
            #25d366,
            #128c7e
        );
}

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

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

@media (max-width: 900px) {
    .contact-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .contact-card-inner,
    .contact-card-face {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .contact-actions {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .contact-card-inner,
    .contact-card-face {
        min-height: 0;
    }

    .contact-card-face {
        padding: 28px 22px;
    }

    .contact-card h3 {
        font-size: 1.05rem;
    }

    .contact-card p {
        margin-bottom: 18px;
    }
}

/* ============================================================
   LOGO COMPLETO DEL FOOTER
============================================================ */

.footer-brand {
    max-width: 340px;
}


.footer-logo {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
}


.footer-logo-image {
    display: block;

    width: 270px;
    max-width: 100%;
    height: auto;

    object-fit: contain;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


.footer-logo:hover .footer-logo-image {
    transform: translateY(-2px);

    filter:
        drop-shadow(
            0 8px 20px
            rgba(108, 99, 255, 0.22)
        );
}


.footer-description {
    max-width: 310px;

    color: var(--text-muted);

    font-size: 0.82rem;
    line-height: 1.7;
}


@media (max-width: 600px) {

    .footer-logo-image {
        width: 230px;
    }

}

.demo-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 40px;
}


.demo-filter {
    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-muted);

    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.demo-filter:hover {
    transform: translateY(-2px);

    color: var(--text-primary);

    border-color:
        rgba(108, 99, 255, 0.4);
}


.demo-filter.active {
    background:
        var(--gradient-primary);

    border-color:
        transparent;

    color: #fff;

    box-shadow:
        0 8px 25px
        rgba(108, 99, 255, 0.22);
}


.demos-loading,
.demos-error,
.demos-empty {
    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    color: var(--text-muted);
}

/* ============================================================
   MENÚ PRINCIPAL Y MENÚ MÓVIL
============================================================ */

.main-navigation {
    display: flex;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    text-decoration: none;
}


/* ============================================================
   VERSIÓN MÓVIL
============================================================ */

@media (max-width: 600px) {

    .site-header {
        position: sticky;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        cursor: pointer;
        z-index: 1002;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 74px;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
        z-index: 1001;
        background: #0b1220;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 10px;
    }

}

/* ============================================================
   CORRECCIÓN DEFINITIVA DEL MENÚ MÓVIL ALBORNET
============================================================ */

@media (max-width: 600px) {

    .site-header {
        position: sticky;
        overflow: visible !important;
        top: 0;
        z-index: 5000;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.is-open {
        display: block !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;

        width: 100vw !important;
        height: auto !important;
        min-height: 200px !important;

        padding: 20px !important;
        box-sizing: border-box !important;

        background: #0b1220 !important;

        z-index: 99999 !important;

        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .main-navigation.is-open ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }

    .main-navigation.is-open li {
        display: block !important;
        width: 100% !important;
    }

    .main-navigation.is-open a {
        display: block !important;

        width: 100% !important;
        box-sizing: border-box !important;

        padding: 14px 10px !important;

        visibility: visible !important;
        opacity: 1 !important;
    }

}

