﻿/* --- style.css DEFINITIVO v3.0 --- */

/* 1. VARIABLES Y CONFIGURACIÄ†â€œN GLOBAL */
:root {
    --bg-dark: #05070a;
    /* Fondo Principal (Casi negro) */
    --purple: #8a4fff;
    /* Morado Brillante */
    --purple-dark: #4a148c;
    /* Morado Oscuro (Barra Top) */
    --green: #00e676;
    /* Verde NeÄ†Â³n (AcciÄ†Â³n) */
    --white: #ffffff;
    /* Blanco */
    --card-bg: #0f121d;
    /* Fondo de Tarjetas */
    --text-gray: #b0b0d0;
    /* Texto secundario */
}

/* 11. SECCIÓN DE CONFIANZA (TRUST SECTION) */
.trust-cta-section {
    padding: 100px 0;
    background: #05070a;
}

.trust-card {
    position: relative;
    padding: 80px 60px;
    border-radius: 40px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(0, 230, 118, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.trust-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

.trust-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.trust-badge {
    color: var(--purple);
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 11px;
    margin-bottom: 20px;
    display: block;
}

.trust-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 950;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 30px;
}

.trust-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 50px;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.t-stat {
    display: flex;
    flex-direction: column;
}

.t-stat strong {
    font-size: 2.5rem;
    font-weight: 950;
    color: #fff;
    line-height: 1;
}

.t-stat span {
    font-size: 10px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    max-width: 100vw;
    /* Prevenir expansión accidental que causa scroll horizontal */
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}


body {
    background-color: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    /* PatrÄ†Â³n sutil de puntos de fondo */
    background-image: radial-gradient(#2a2e45 1px, transparent 1px);
    background-size: 40px 40px;
}

/* EFECTO DE GRANO CINEMATOGRÁFICO GLOBAL */
.grain-overlay {
    position: absolute;
    inset: 0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/7/76/Noise_600x600.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
}

/* 2. DISEÄ†â€˜O GLOBAL Y CONTENEDORES */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 3. BARRA SUPERIOR (TOP BAR) */
.top-bar {
    background-color: var(--purple-dark);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-top span {
    margin-right: 20px;
}

.contact-info-top i {
    color: var(--green);
    margin-right: 8px;
}

.social-links-top a {
    color: white;
    margin-left: 18px;
    font-size: 16px;
    transition: 0.3s;
}

.social-links-top a:hover {
    color: var(--green);
}

/* 3. NAVEGACIÄ†â€œN (HEADER BLANCO) */
header {
    background-color: #fff;
    height: 80px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1200px;
    height: 100%;
}

.logo img {
    height: 70px;
    display: block;
}

.nav-menu a {
    text-decoration: none;
    color: #05070a;
    /* Texto Negro */
    font-weight: 800;
    font-size: 13px;
    margin: 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--purple);
}

.admin-link {
    color: var(--purple) !important;
}

.header-btn {
    padding: 10px 30px;
    font-size: 13px;
    border-radius: 5px;
    box-shadow: none;
}

.hamburger {
    display: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

/* --- RESPONSIVE NAVIGATION --- */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    .header-btn {
        display: none;
        /* Hide in header on mobile, can add to menu if needed */
    }
}

/* 4. HERO SECTION (BANNER PRINCIPAL) */
.hero-section {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
}

/* Luz de fondo */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 79, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.gradient-text-hero {
    background: linear-gradient(180deg, #b388ff 0%, #7c4dff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.5));
}

.tagline {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 400;
    line-height: 1.6;
}

/* FIGURAS GEOMÄ†â€°TRICAS ANIMADAS */
.shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.3;
}

.shape-cube {
    width: 60px;
    height: 60px;
    border: 4px solid var(--purple);
    top: 20%;
    left: 10%;
}

.shape-circle {
    width: 30px;
    height: 30px;
    background: var(--green);
    border-radius: 50%;
    top: 60%;
    right: 15%;
}

.shape-cross {
    font-size: 40px;
    color: var(--purple);
    top: 25%;
    right: 20%;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(255, 255, 255, 0.1);
    bottom: 20%;
    left: 15%;
}

/* Animaciones */
.rotate-anim {
    animation: floatRotate 15s infinite linear;
}

.float-anim {
    animation: float 8s infinite ease-in-out;
}

.float-anim-slow {
    animation: float 12s infinite ease-in-out reverse;
}

.spin-anim {
    animation: spin 10s infinite linear;
}

@keyframes floatRotate {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* 5. ICONOS DE SERVICIOS (HERO) */
.hero-services-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
}

.circle-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 15px auto;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.icon-item:hover .circle-icon {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.icon-item p {
    font-size: 12px;
    font-weight: 700;
    color: var(--purple);
    line-height: 1.3;
}

/* 6. SECCIÄ†â€œN DE PRECIOS / PLANES (CORREGIDA) */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 92%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid #2a2e45;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--green);
}

.price-card.featured {
    border: 2px solid var(--green);
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.badge-best {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: black;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.price-header h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.price {
    font-size: 40px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 30px;
}

.price-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    padding: 0;
}

.price-features li {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.price-features i {
    color: var(--green);
    margin-right: 12px;
    margin-top: 3px;
}

.legal-note {
    font-size: 11px;
    color: #777;
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.4;
}

/* 7. BOTONES (CORREGIDOS) */
/* BotÄ†Â³n Verde NeÄ†Â³n (Principal) */
.btn-green {
    background: var(--green);
    color: #000;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px 40px;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.4);
}

.btn-green:hover {
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.6);
    background: #00c853;
}

/* BotÄ†Â³n Outline (Borde) */
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 40px;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    font-size: 16px;
    padding: 18px 50px;
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

/* 8. PROYECTOS (PORTAFOLIO) */
.portfolio-section {
    padding: 100px 0;
    background-color: #080a12;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.purple-text {
    color: var(--purple);
}

.green-text {
    color: var(--green);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #2a2e45;
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-content p {
    color: #888;
    font-size: 0.9rem;
}

/* 10. PÄ†GINA DE PROYECTOS (PORTAFOLIO) */

.hero-subpage h1 {
    font-size: 3.5rem;
    font-weight: 950;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.filter-container {
    margin-bottom: 30px;
    /* Reducido de 60px */
    margin-top: -30px;
    /* Acercar al título */
    display: flex;
    justify-content: center;
}

.pill-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.filter-btn {
    padding: 12px 25px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.filter-btn.active,
.filter-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.filter-btn .count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 50px;
    margin-left: 8px;
    font-weight: 800;
    transition: 0.3s;
}

.filter-btn.active .count,
.filter-btn:hover .count {
    background: #000;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forzado a 3 columnas para cierre perfecto */
    gap: 30px;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.bento-large {
        grid-column: span 1;
    }
}

/* BENTO GRID CLASSES */
@media (min-width: 992px) {
    .project-card.bento-large {
        grid-column: span 2;
    }
}

.project-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    cursor: pointer;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Revelado escalonado inicial */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card.active {
    opacity: 1;
    transform: translateY(0);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* INSIGNIAS DE TECH STACK */
.tech-stack-badges {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 15;
    opacity: 0;
    transform: translateX(10px);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .tech-stack-badges {
    opacity: 1;
    transform: translateX(0);
}

.tech-badge {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.tech-badge:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-3px);
}

.project-card:hover .project-img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(0.4) blur(3px);
}

.project-overlay {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: 0.5s;
    transform: translateY(20px);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1;
}

.btn-view-case {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-view-case::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: 0.3s;
}

.project-card:hover .btn-view-case::after {
    transform: translateX(10px);
}

/* 9. CONTACTO */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid #2a2e45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.info-list {
    list-style: none;
    margin-top: 30px;
}

.info-list li {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.info-list i {
    color: var(--green);
}

.main-form label {
    display: block;
    font-size: 11px;
    color: #666;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.main-form input,
.main-form select {
    width: 100%;
    padding: 15px;
    background: #05070a;
    border: 1px solid #333;
    border-radius: 5px;
    color: white;
    outline: none;
    margin-bottom: 20px;
}

.main-form input:focus,
.main-form select:focus {
    border-color: var(--green);
}

/* 10. FOOTER */
/* 10. FOOTER (REDISEÑADO) v4 */
footer {
    background-color: #fff;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 4px solid #8a4fff;
    color: #333;
    position: relative;
    overflow: hidden;
    /* Evita que .footer-shape o elementos anchos salgan */
    width: 100%;
}

.footer-banner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 120px !important;
    width: auto;
    display: block;
    margin-bottom: 0;
}

.footer-social-links {
    display: flex;
    gap: 8px;
}

.footer-social-links a {
    font-size: 1.6rem;
    transition: all 0.3s ease;
    color: #333;
}

.footer-social-links a:hover {
    transform: translateY(-3px);
}

.footer-social-links .fb:hover {
    color: #1877F2;
}

.footer-social-links .ig:hover {
    color: #E4405F;
}

.footer-social-links .tt:hover {
    color: #000000;
}

.footer-divider {
    width: 6px;
    height: 80px;
    background-color: #8a4fff;
    border-radius: 10px;
    margin: 0 15px;
}

.footer-slogan-side {
    max-width: 250px;
    text-align: left;
    margin-right: 20px;
}

.footer-slogan {
    font-size: 0.9rem;
    line-height: 1.1;
    color: #222;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-slogan strong {
    display: block;
    color: #8a4fff;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.footer-info-side {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info-item i {
    font-size: 0.9rem;
    color: var(--purple);
    opacity: 0.7;
}

.footer-text-group {
    display: flex;
    flex-direction: column;
}

.footer-text-group strong {
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-text-group span {
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-text-group span i {
    font-size: 0.8rem;
    color: #8a4fff;
    width: 14px;
    text-align: center;
}

.footer-bottom {
    background-color: #fcfcfc;
    text-align: center;
    padding: 12px;
    font-size: 0.75rem;
    color: #aaa;
    border-top: 1px solid #eee;
}

.footer-shape {
    position: absolute;
    right: 5%;
    bottom: 80px;
    width: 80px;
    height: 90px;
    background-color: var(--green);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.9;
    z-index: 10;
}

/* 11. CHATBOT CLÄ†SICO */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.wa-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: 0.3s;
    animation: waPulse 2s infinite;
    position: relative;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-button:hover {
    transform: scale(1.1);
}

.wa-notify {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid white;
}

.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
}

.wa-chat-box.active {
    display: block;
    animation: slideUp 0.3s;
}

.wa-header {
    background-color: #075E54;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.wa-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: 10px;
}

.wa-info h5 {
    margin: 0;
    font-size: 16px;
}

.wa-close {
    cursor: pointer;
    opacity: 0.8;
}

.wa-body {
    padding: 20px;
    background-color: #E5DDD5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-msg {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 80%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wa-msg.bot {
    background: #ffffff;
    align-self: flex-start;
    color: #333;
    border-top-left-radius: 0;
}

.wa-msg.user {
    background: #DCF8C6;
    align-self: flex-end;
    color: #333;
    border-top-right-radius: 0;
}

.wa-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 85%;
    align-self: flex-end;
}

.wa-btn-opt {
    background: white;
    border: 1px solid #128C7E;
    color: #128C7E;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-btn-opt:hover {
    background: #128C7E;
    color: white;
}

.wa-btn-back {
    border-color: #d32f2f;
    color: #d32f2f;
}

.wa-btn-back:hover {
    background: #d32f2f;
    color: white;
}

.wa-btn-final {
    background-color: #25D366;
    color: white;
    border: none;
}

.wa-btn-final:hover {
    background-color: #128C7E;
}

.wa-footer {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
}

.wa-input {
    background: white;
    border-radius: 20px;
    padding: 8px 15px;
    width: 90%;
    font-size: 13px;
    color: #999;
}

.wa-send {
    color: #075E54;
    font-size: 18px;
    margin-left: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ANIMACIONES */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE (MÄ†â€œVILES) */
/* Redundant mobile styles removed for consolidation */

/* El modal de contacto ha sido consolidado al final del documento */
.wa-chat-box {
    width: 300px;
    bottom: 80px;
    right: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

h2 {
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

.hero-buttons {
    justify-content: center !important;
}

/* --- POPUP PROMO --- */
.promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.promo-modal-overlay.active {
    display: flex;
    animation: slideUp 0.4s;
}

.promo-modal-content {
    position: relative;
    background: #0f121d;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #2a2e45;
    text-align: center;
}

.promo-modal-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.promo-modal-content .close-btn:hover {
    color: white;
}

.promo-img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* --- FOOTER v1 ESTILOS --- */
.footer-slogan {
    color: #555;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.footer-slogan strong {
    color: var(--purple);
}



/* --- PROJECT DETAILS MODAL PREMIUM REDESIGN --- */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
    align-items: flex-start;
    justify-content: center;
}

.project-modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.4s ease forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pd-modal-content {
    background: #0a0d14;
    width: 100%;
    max-width: 900px;
    border-radius: 30px;
    position: relative;
    border: 1px solid rgba(138, 79, 255, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-modal-overlay.active .pd-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-pd {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-pd:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.pd-hero-img {
    height: 350px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pd-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0d14 0%, rgba(10, 13, 20, 0) 100%);
}

.pd-info {
    padding: 0 50px 50px 50px;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.pd-badge {
    background: linear-gradient(90deg, rgba(82, 0, 255, 0.15), rgba(0, 255, 136, 0.15));
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

#pdTitle {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 40px;
    color: #fff;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.pd-item h4,
.pd-result-box h4 {
    color: var(--miam-purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.pd-item p,
.pd-result-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.pd-result-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(138, 79, 255, 0.15);
    margin-bottom: 40px;
}

#pdActionBtn {
    width: 100%;
    padding: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
}

@media (max-width: 768px) {
    .project-modal-overlay {
        padding: 20px 10px;
    }

    .pd-modal-content {
        border-radius: 20px;
    }

    .pd-hero-img {
        height: 250px;
    }

    .pd-info {
        padding: 0 25px 30px 25px;
        margin-top: -30px;
    }

    .pd-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pd-result-box {
        padding: 25px;
    }
}

/* CURSOR TYPEWRITER */
.typewriter-cursor {
    display: inline-block;
    background: linear-gradient(135deg, #7d39eb, #c6ff33);
    width: 3px;
    height: 0.85em;
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 2px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes badgePulse {

    0%,
    100% {
        transform: rotate(5deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.06);
    }
}

/* Process Timeline - Línea Animada */
.process-line-animated {
    position: absolute;
    top: 50px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(125, 57, 235, 0) 0%,
            rgba(125, 57, 235, 0.8) 20%,
            rgba(0, 230, 118, 0.8) 80%,
            rgba(0, 230, 118, 0) 100%);
    background-size: 200% 100%;
    animation: flowLine 3s linear infinite;
    z-index: 0;
    opacity: 0.6;
    border-radius: 10px;
}

@keyframes flowLine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Testimonials - Refinado */
.testimonial-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(125, 57, 235, 0.1) !important;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.testimonial-card:hover {
    border-color: var(--green) !important;
    box-shadow: 0 20px 40px rgba(0, 230, 118, 0.1);
}

.testimonial-avatar {
    box-shadow: 0 0 20px rgba(125, 57, 235, 0.3);
}

/* FAQ - Centrado y Pulido */
.faq-section {
    text-align: center;
}

.faq-container {
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--purple) !important;
    background: rgba(125, 57, 235, 0.05) !important;
}

/* Back to Top */
#backToTop:hover {
    background: var(--green) !important;
    color: var(--bg-dark) !important;
    transform: translateY(-5px);
}

#backToTop.visible {
    display: flex !important;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes Responsivos */
@media (max-width: 991px) {

    .stats-grid,
    .pricing-grid,
    .process-grid,
    .process-steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding-top: 40px !important;
    }

    .hero-text-col,
    .hero-logo-col {
        text-align: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    section {
        padding: 80px 0 !important;
        /* Espaciado premium para móviles */
    }

    .process-line-animated {
        display: none !important;
    }
}

@media (max-width: 768px) {}

/* --- RESPONSIVE UTILITIES FOR INDEX.HTML --- */
.hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.stats-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {

    .hero-grid,
    .stats-grid-container,
    .about-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px;
    }

    .hero-text-col {
        order: 2;
    }

    .hero-logo-col {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-buttons {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .stats-grid-container {
        grid-template-columns: 1fr !important;
    }
}

/* 11. MODAL DE CONTACTO */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.contact-modal-container {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #333;
}

.contact-modal-overlay.active .contact-modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--purple);
}

.modal-logo {
    display: block;
    height: 60px;
    margin: 0 auto 20px auto;
}

.contact-modal-container h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--purple);
    font-weight: 800;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #555;
}

.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.3s;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    border-color: var(--purple);
    outline: none;
}

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--green);
    color: #05070a;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(198, 255, 51, 0.4);
}

@media (max-width: 480px) {
    .contact-modal-container {
        padding: 30px 20px;
    }
}

/* 12. PRELOADER PREMIUM */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #05070a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.loader-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    width: 900px;
    max-width: 90%;
    height: auto;
    margin-bottom: 30px;
    animation: loaderPulse 2.5s infinite ease-in-out;
}

.loader-bar-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--green);
    animation: loaderProgress 3s infinite ease-in-out;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(125, 57, 235, 0));
    }

    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 30px rgba(125, 57, 235, 0.6));
    }
}

@keyframes loaderProgress {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        width: 120px;
    }

    .loader-bar-container {
        width: 150px;
    }
}

/* --- CONSOLIDATED RESPONSIVE SUITE --- */
@media (max-width: 991px) {
    .hamburger {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
        color: #333;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--purple);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        gap: 20px;
        padding: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
        margin: 10px 0;
        color: #fff !important;
    }

    .header-btn {
        display: none !important;
    }

    .hero-grid,
    .stats-grid-container,
    .about-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 50px;
        /* Aumentar gap para evitar amontonamiento */
    }

    .hero-text-col {
        order: 2;
    }

    .hero-logo-col {
        order: 1;
        margin-bottom: 30px;
    }

    /* 5. SECCIÓN NOSOTROS Y SERVICIOS (Centrado Total y Reducción de Escala) */
    .about-main-img {
        height: 280px !important;
        /* Reducción de 450px a 280px para móviles */
        border-radius: 20px !important;
    }

    .about-img-title {
        font-size: 1.1rem !important;
        /* Texto de Socio Estratégico más pequeño */
    }

    .section-title {
        font-size: 1.8rem !important;
        /* Reducción de "Transformamos tu visión digital..." */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .section-desc {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .about-text-col {
        text-align: center !important;
        padding: 0 10px !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 30px !important;
    }

    .benefit-item {
        flex-direction: row !important;
        /* Volvemos a fila real */
        align-items: flex-start !important;
        text-align: left !important;
    }

    .benefit-icon {
        margin-bottom: 0 !important;
        margin-top: 5px !important;
        /* Alínea icono con la primera línea del título */
    }

    .benefit-content h4 {
        margin-bottom: 5px !important;
        text-align: left !important;
    }

    .benefit-item>div:last-child p {
        padding-left: 0 !important;
        margin-top: 5px !important;
        text-align: left !important;
    }

    .service-card-home {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 30px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-card-home ul li {
        justify-content: center !important;
    }

    /* 6. NUESTRO PROCESO (Centrado) */
    .process-steps-grid>div {
        text-align: center !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important;
    }

    /* 6. Correcciones FINALES para Paquetes en Móvil */
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
    }

    .price-card {
        width: 100% !important;
        max-width: 320px !important;
        /* Evita que se estiren de más o se corten */
        margin: 0 auto !important;
    }

    /* Corrección CTA ¿Necesitas algo a medida? */
    .contact-section {
        padding: 60px 10px !important;
        /* Dar respiro a los lados */
    }

    .contact-wrapper {
        display: flex !important;
        flex-direction: column !important;
        padding: 30px 15px !important;
        /* Ajustar padding interno */
        text-align: center !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-info {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .contact-info h3 {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }

    .contact-info p {
        font-size: 0.9rem !important;
    }

    .main-form {
        width: 100% !important;
        margin-top: 20px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .form-group {
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group input,
    .form-group select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 14px !important;
        /* Optimizar panel táctil */
    }
}


@media (max-width: 600px) {
    .stats-grid-container {
        grid-template-columns: 1fr !important;
    }

    .logo img {
        height: 50px;
    }

    .top-bar {
        display: none;
        /* Hide top bar on ultra-small screens to save space */
    }

    .footer-banner-container {
        flex-direction: column !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .footer-divider {
        width: 60px !important;
        height: 4px !important;
        margin: 15px auto !important;
        display: block !important;
    }

    .footer-info-side {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .footer-slogan-side {
        margin: 0 auto 15px !important;
        text-align: center !important;
    }

    body,
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

/* --- UTILITY CLASSES --- */
.hero-subtitle {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 79, 255, 0.15);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-orb {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(30px);
}

.stat-orb-purple {
    background: rgba(138, 79, 255, 0.1);
}

.stat-orb-green {
    background: rgba(0, 230, 118, 0.1);
}

.stat-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(138, 79, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(138, 79, 255, 0.2);
}

.stat-icon-box i {
    color: var(--purple);
    font-size: 1.5rem;
}

.stat-icon-green {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.2);
}

.stat-icon-green i {
    color: var(--green);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- ABOUT SECTION CLASSES --- */
.nosotros-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.about-img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.8), transparent);
}

.about-img-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

.about-badge {
    background: var(--green);
    color: #05070a;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.about-img-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 25px;
}

.section-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.accent-purple {
    color: var(--purple);
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-icon {
    color: var(--green);
    margin-top: 3px;
}

.benefit-content h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

/* --- PREMIUM SERVICIOS ARCHITECTURE (ISOLATED) --- */

.premium-neon-badge {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(82, 0, 255, 0.15), rgba(0, 255, 136, 0.15));
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
    margin-bottom: 20px;
}

/* 1. Premium Showcase */
.miam-premium-showcase {
    position: relative;
    padding: 120px 0;
    background: transparent;
    overflow: hidden;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 60px;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 79, 255, 0.3);
    transform: translateY(-5px);
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-img {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.7);
    transition: 0.8s;
}

.showcase-item:hover .showcase-img img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.img-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(138, 79, 255, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.showcase-item:hover .img-glow {
    opacity: 1;
}

.showcase-content {
    flex: 1;
}

.showcase-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
}

.showcase-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--miam-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
}

.showcase-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--miam-purple);
    transition: 0.3s;
}

.showcase-link:hover::after {
    width: 100%;
}

@media (max-width: 991px) {
    .showcase-list {
        gap: 40px;
    }

    .showcase-item,
    .showcase-item.reverse {
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
    }

    .showcase-img {
        width: 100%;
        height: 250px;
    }

    .showcase-item {
        border-radius: 30px;
    }
}

/* Ajustes Cotizador Navegación */
@media (max-width: 768px) {
    .step-navigation {
        margin-top: 50px !important;
        padding-top: 30px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 10;
    }

    .services-section h2 {
        margin-bottom: 30px !important;
    }
}

/* 2. Premium Timeline */
.miam-premium-timeline-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.premium-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line-center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, transparent, rgba(138, 79, 255, 0.2) 15%, rgba(138, 79, 255, 0.2) 85%, transparent);
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.timeline-node.reverse {
    flex-direction: row-reverse;
}

.node-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 3px solid rgba(138, 79, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
    transition: 0.5s;
    box-shadow: 0 0 20px rgba(138, 79, 255, 0.1);
}

.timeline-node:hover .node-marker {
    border-color: var(--miam-purple);
    background: var(--miam-purple);
    box-shadow: 0 0 30px var(--miam-purple);
    transform: translate(-50%, -50%) scale(1.1);
}

.node-content {
    width: 42%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
    transition: 0.4s;
    text-align: right;
}

.timeline-node.reverse .node-content {
    text-align: left;
}

.timeline-node:hover .node-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 79, 255, 0.2);
    transform: translateY(-5px);
}

.node-subtitle {
    color: var(--miam-purple);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 800;
}

.node-title {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 15px;
    font-weight: 800;
}

.node-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .timeline-line-center {
        left: 30px;
    }

    .premium-timeline {
        padding-left: 0;
    }

    .timeline-node,
    .timeline-node.reverse {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
        margin-bottom: 50px;
    }

    .node-marker {
        left: 30px;
        top: 0;
        transform: translate(-50%, 0);
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-node:hover .node-marker {
        transform: translate(-50%, 0) scale(1.1);
    }

    .node-content,
    .timeline-node.reverse .node-content {
        width: 100%;
        text-align: left;
        padding: 30px 25px;
    }
}

/* 3. Premium Trust Section */
.miam-premium-trust {
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
}

.trust-glass-box {
    background: rgba(138, 79, 255, 0.03);
    border: 1px solid rgba(138, 79, 255, 0.15);
    border-radius: 40px;
    padding: 80px 60px;
    backdrop-filter: blur(10px);
}

.trust-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 20px 0;
}

.trust-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.trust-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.trust-pillar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
    text-align: left;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.trust-pillar:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(138, 79, 255, 0.3);
    transform: translateY(-8px);
}

.trust-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--miam-purple), transparent);
    opacity: 0;
    transition: 0.4s;
}

.trust-pillar:hover::before {
    opacity: 1;
}

.pillar-icon {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.3));
}

.trust-pillar h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.trust-pillar p {
    color: var(--text-muted);
    line-height: 1.6;
}

.trust-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.trust-cta p {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .trust-glass-box {
        padding: 50px 30px;
    }

    .trust-pillars-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .trust-pillar {
        padding: 30px;
    }
}

/* 2. Cotizador Premium Cards & Checkout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cotiza-card {
    background: rgba(10, 13, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(138, 79, 255, 0.15);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.cotiza-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(138, 79, 255, 0.8), transparent);
    opacity: 0;
    transition: 0.4s;
}

.cotiza-card:hover,
.cotiza-card.selected {
    border-color: rgba(0, 255, 136, 0.6);
    background: rgba(138, 79, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.15);
}

.cotiza-card:hover::before,
.cotiza-card.selected::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

.cotiza-card i {
    font-size: 2.8rem;
    color: var(--miam-purple);
    margin-bottom: 20px;
    transition: 0.4s;
    filter: drop-shadow(0 0 10px rgba(138, 79, 255, 0.4));
}

.cotiza-card:hover i,
.cotiza-card.selected i {
    color: #00ff88;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
    transform: scale(1.1);
}

.cotiza-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.5px;
}

.cotiza-card .cotiza-price {
    font-size: 1.15rem;
    color: #00ff88;
    font-weight: 900;
    margin-bottom: 20px;
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.service-features-mini {
    list-style: none;
    padding: 0;
    margin-top: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features-mini li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-features-mini li i {
    font-size: 0.8rem;
    color: #00ff88;
    margin-bottom: 0;
    margin-top: 3px;
    filter: none;
}

.cotiza-card:hover .service-features-mini li i,
.cotiza-card.selected .service-features-mini li i {
    transform: none;
    filter: none;
}

/* Modificación del Panel Resumen Frontal */
.summary-card-premium {
    background: rgba(10, 13, 20, 0.8) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(138, 79, 255, 0.3) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

/* ===============================================
   NUEVO FORMULARIO CHECKOUT NEOBANCO (Paso 5)
   =============================================== */
.premium-checkout-box {
    background: rgba(10, 13, 20, 0.5);
    border: 1px solid rgba(138, 79, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group-premium {
    position: relative;
    width: 100%;
}

.form-group-premium .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(138, 79, 255, 0.8);
    font-size: 1.2rem;
    z-index: 2;
    transition: 0.3s;
}

.form-group-premium input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(138, 79, 255, 0.15);
    padding: 18px 20px 18px 55px;
    border-radius: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group-premium input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group-premium input:focus {
    outline: none;
    background: rgba(138, 79, 255, 0.05);
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.form-group-premium input:focus+.input-icon,
.form-group-premium input:not(:placeholder-shown)+.input-icon {
    color: #00ff88;
}

.checkout-guarantee-box {
    background: rgba(0, 255, 136, 0.05);
    border: 1px dashed rgba(0, 255, 136, 0.4);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.checkout-guarantee-box i {
    font-size: 2rem;
    color: #00ff88;
}

.checkout-guarantee-box p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .premium-checkout-box {
        padding: 25px;
    }

    .checkout-guarantee-box {
        flex-direction: column;
        text-align: center;
    }
}

/* 3. Global Scaling Fixes */
.stat-card-premium {
    min-height: 180px !important;
}

@media (max-width: 576px) {
    h2 {
        font-size: 2.2rem !important;
    }

    .giant-text {
        display: none;
    }
}

/* --- PROYECTOS FILTER BAR (MOBILE FIX) --- */
.pill-bar {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .pill-bar {
        justify-content: center;
        gap: 10px;
    }

    .filter-btn {
        font-size: 0.85rem !important;
        padding: 10px 15px !important;
        flex: 0 1 auto;
    }
}