/* ============================================
   PUNTOCOM - ESTILOS COMPLETOS
   Versión 3.0 - Actualización con formulario y mejoras
   ============================================ */

/* ============================================
   1. RESET Y VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

:root {
    --cream-bg: #FDFDF4;
    --cyan-accent: #40C4D4;
    --pink-accent: #FF4094;
    --dark-text: #333333;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--cream-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Cursor personalizado convive con el del sistema */
}

/* ============================================
   2. CURSOR PERSONALIZADO
   ============================================ */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--pink-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    /* Sin transición para que siga al puntero real sin lag */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 64, 148, 0.4);
}

.custom-cursor.cyan-cursor {
    background-color: var(--cyan-accent);
    box-shadow: 0 0 10px rgba(64, 196, 212, 0.4);
}

.custom-cursor.hovering {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(255, 64, 148, 0.8);
}

/* ============================================
   3. NAVBAR (SMART - con mejoras)
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 253, 244, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(64, 196, 212, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== LOGO A LA IZQUIERDA, CENTRADO VERTICALMENTE ===== */
.logo-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* centrado vertical natural mediante flex del navbar */
}

.logo-centered {
    /* Sin posicionamiento absoluto — el flex del navbar lo centra verticalmente */
    position: static;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan-accent);
    position: relative;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Logo con animación de RESPIRACIÓN (mejorado) */
.bouncing-ball {
    width: 18px;
    height: 18px;
    background: var(--pink-accent);
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation: breathe 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 64, 148, 0.6);
}

@keyframes breathe {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 15px rgba(255, 64, 148, 0.6);
    }
    50% { 
        transform: translateX(-50%) scale(1.15);
        box-shadow: 0 0 25px rgba(255, 64, 148, 0.9);
    }
}

/* Solo bounce al hover */
.logo-link:hover .bouncing-ball {
    animation: bounce 0.8s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

.bouncing-ball::before,
.bouncing-ball::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pink-accent);
    border-radius: 50%;
    opacity: 0.6;
}

.bouncing-ball::before {
    top: -6px;
    left: -8px;
    animation: sparkle 0.8s ease-in-out infinite;
}

.bouncing-ball::after {
    top: -6px;
    right: -8px;
    animation: sparkle 0.8s ease-in-out 0.2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--cyan-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--pink-accent);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   4. BOTONES (MAGNÉTICOS + LÍQUIDOS)
   ============================================ */
.cta-button {
    background: var(--pink-accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 64, 148, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* OCULTAR ETIQUETA ANTIGUA */
.featured-badge {
    display: none !important;
}

/* LAZO DE OFERTA EN PRECIOS (ULTRA REFINADO) */
.price-ribbon {
    position: absolute;
    top: 5px;
    right: -40px;
    background: var(--cyan-accent);
    color: white;
    padding: 10px 50px;
    font-size: 0.75rem;
    font-weight: 900;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 20;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: 150px;
}

.featured .price-ribbon {
    background: var(--pink-accent);
    box-shadow: 0 4px 15px rgba(255, 64, 148, 0.4);
}

/* PRECIOS Y DESCUENTOS (COMPACTO) */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem; /* Reducido de 2rem */
}

.price-from {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.1rem;
}

.featured .price-from {
    color: rgba(255,255,255,0.8);
}

.old-price {
    font-size: 1.15rem; /* Ligeramente menor */
    color: var(--slate-400);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--pink-accent);
    font-weight: 500;
    opacity: 0.8;
}

.featured .old-price {
    color: rgba(255,255,255,0.7);
    text-decoration-color: var(--white);
}

.new-price {
    font-size: 3.5rem; /* Ajuste para compactar */
    font-weight: 900;
    line-height: 1;
    margin: 0.1rem 0;
    display: block;
    letter-spacing: -1.5px;
    color: var(--pink-accent);
}

.featured .new-price {
    color: var(--white);
}

.price-iva {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    opacity: 0.6;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 64, 148, 0.5);
    border-radius: 35% 65% 60% 40% / 50% 45% 55% 50%;
    animation: liquidMorph 3s ease-in-out infinite;
    color: var(--white);
}

/* ===== BOTÓN NAVBAR (nav-cta): texto SIEMPRE blanco ===== */
.nav-cta {
    color: var(--white) !important;
}

.nav-cta:hover {
    color: var(--white) !important;
}

/* Eliminar underline pseudo en nav-cta ya que es un botón */
.nav-cta::after {
    display: none !important;
}

@keyframes liquidMorph {
    0%, 100% {
        border-radius: 35% 65% 60% 40% / 50% 45% 55% 50%;
    }
    25% {
        border-radius: 60% 40% 50% 50% / 45% 60% 40% 55%;
    }
    50% {
        border-radius: 50% 50% 35% 65% / 55% 50% 50% 45%;
    }
    75% {
        border-radius: 40% 60% 65% 35% / 50% 55% 45% 50%;
    }
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cyan-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   5. HERO SECTION (con partículas y animación)
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(64, 196, 212, 0.05) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-logo {
    position: relative;
    margin-bottom: 2rem;
    /* Estado inicial: invisible (GSAP la revelará) */
    opacity: 0;
    transform: scale(0.8);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-logo-text {
    font-size: 5rem;
    font-weight: 700;
    color: var(--cyan-accent);
    position: relative;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(64, 196, 212, 0.3);
}

.hero-ball {
    width: 45px;
    height: 45px;
    background: var(--pink-accent);
    border-radius: 50%;
    position: absolute;
    top: -15px;
    left: 50%;
    /* Estado inicial: invisible y posicionada arriba (GSAP la animará) */
    opacity: 0;
    transform: translateX(-50%) translateY(-100vh) scaleX(0.5);
    box-shadow: 0 0 30px rgba(255, 64, 148, 0.8);
}

.hero-bounce-active {
    animation: heroBounce 1s ease-in-out infinite;
    opacity: 1; /* Contrarresta el opacity:0 del estado base una vez GSAP termina */
}

.hero-ball::before,
.hero-ball::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pink-accent);
    border-radius: 50%;
}

.hero-ball::before {
    top: -12px;
    left: -15px;
    animation: heroSparkle 1s ease-in-out infinite;
}

.hero-ball::after {
    top: -12px;
    right: -15px;
    animation: heroSparkle 1s ease-in-out 0.3s infinite;
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

@keyframes heroSparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
}



.hero h1 {
    font-size: 3.5rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    position: relative;
    /* Estado inicial: invisible y desplazado (GSAP lo revelará) */
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--dark-text);
    position: relative;
    /* Estado inicial: invisible y desplazado (GSAP lo revelará) */
    opacity: 0;
    transform: translateY(30px);
}
/* Estado inicial del botón CTA del hero: solo oculto, sin desplazamiento */
.hero .cta-button {
    opacity: 0;
}



/* ============================================
   6. SECCIONES GENERALES
   ============================================ */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    opacity: 1 !important;
    transform: none !important;
}

#servicios {
    padding: 6rem 5%;
    background: var(--white);
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--cyan-accent);
    position: relative;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    -webkit-text-stroke: 2px rgba(64, 196, 212, 0.1);
    z-index: -1;
    transform: translate(-10px, -10px);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--pink-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============================================
   7. SERVICIOS (Layout Asimétrico)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.service-card:nth-child(1) { transform: translateY(0); }
.service-card:nth-child(2) { transform: translateY(4rem); }
.service-card:nth-child(3) { transform: translateY(-2rem); }
.service-card:nth-child(4) { transform: translateY(2rem); }

.service-card {
    background: var(--cream-bg);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 196, 212, 0.08), rgba(255, 64, 148, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(64, 196, 212, 0.2);
    z-index: 5;
}

.service-card:nth-child(1):hover { transform: translateY(-10px); }
.service-card:nth-child(2):hover { transform: translateY(3rem); }
.service-card:nth-child(3):hover { transform: translateY(-3rem); }
.service-card:nth-child(4):hover { transform: translateY(1rem); }

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-monitor {
    width: 100%;
    height: 60px;
    background: var(--cyan-accent);
    border-radius: 8px;
    position: relative;
    transition: all 0.4s ease;
}
.service-card:hover .icon-monitor {
    background: var(--pink-accent);
    transform: scale(1.1) rotate(-5deg);
}
.bounce-dot {
    width: 18px;
    height: 18px;
    background: var(--pink-accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}
.service-card:hover .bounce-dot {
    animation: iconBounce 0.6s ease-in-out infinite;
    background: var(--white);
}

.icon-search {
    width: 55px;
    height: 55px;
    border: 6px solid var(--cyan-accent);
    border-radius: 50%;
    position: relative;
    transition: all 0.4s ease;
}
.service-card:hover .icon-search {
    border-color: var(--pink-accent);
    transform: rotate(15deg) scale(1.1);
}
.arrow-up {
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 20px solid var(--cyan-accent);
    position: absolute;
    top: -20px;
    right: -10px;
    transition: all 0.3s ease;
}
.service-card:hover .arrow-up {
    animation: arrowFloat 1s ease-in-out infinite;
    border-bottom-color: var(--pink-accent);
}

.icon-gear {
    width: 60px;
    height: 60px;
    background: var(--cyan-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.service-card:hover .icon-gear {
    animation: gearRotate 2s linear infinite;
    background: var(--pink-accent);
}
.icon-wrench {
    width: 8px;
    height: 25px;
    background: var(--white);
    border-radius: 4px;
    position: relative;
}
.icon-wrench::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border: 3px solid var(--white);
    border-radius: 50%;
}

.icon-cart {
    width: 50px;
    height: 45px;
    background: var(--cyan-accent);
    border-radius: 5px 5px 12px 12px;
    position: relative;
    transition: all 0.4s ease;
    margin-top: 10px;
}
.cart-handle {
    width: 28px;
    height: 20px;
    border: 5px solid var(--cyan-accent);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
}
.service-card:hover .icon-cart {
    background: var(--pink-accent);
    transform: scale(1.1) translateY(5px);
}
.service-card:hover .cart-handle {
    border-color: var(--pink-accent);
    transform: translateX(-50%) translateY(-3px);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--cyan-accent);
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: var(--pink-accent);
}

.service-card p {
    color: var(--dark-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   8. VENTAJAS SECTION
   ============================================ */
.ventajas-section {
    padding: 6rem 5%;
    background: var(--cream-bg);
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ventaja-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ventaja-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(64, 196, 212, 0.2);
}

.ventaja-card i {
    font-size: 2.5rem;
    color: var(--pink-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.ventaja-card h3 {
    font-size: 1.4rem;
    color: var(--cyan-accent);
    margin-bottom: 1rem;
}

.ventaja-card p {
    color: var(--dark-text);
    line-height: 1.6;
}

/* ============================================
   9. TECHNOLOGY SECTION
   ============================================ */
#tecnologia {
    padding: 6rem 5%;
    background: var(--dark-text);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#tecnologia .section-title {
    color: var(--cyan-accent);
}

.tech-section {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.tech-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.tech-carousel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 70px;
}

.tech-carousel {
    width: 100%;
    height: 350px;
    position: relative;
    perspective: 1000px;
    overflow: visible;
}

.tech-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.tech-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(64, 196, 212, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.tech-item.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    background: rgba(64, 196, 212, 0.1);
    border-color: var(--cyan-accent);
    box-shadow: 0 0 40px rgba(64, 196, 212, 0.3);
}

.tech-item.prev {
    transform: translate(calc(-50% - 250px), -50%) scale(0.8) rotateY(25deg);
    opacity: 0.4;
    z-index: 5;
}

.tech-item.next {
    transform: translate(calc(-50% + 250px), -50%) scale(0.8) rotateY(-25deg);
    opacity: 0.4;
    z-index: 5;
}

.tech-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.tech-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan-accent);
    margin-bottom: 1rem;
}

.tech-description {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(64, 196, 212, 0.2);
    border: 2px solid var(--cyan-accent);
    color: var(--cyan-accent);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-nav:hover {
    background: var(--cyan-accent);
    color: var(--dark-text);
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(64, 196, 212, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--cyan-accent);
    transform: scale(1.4);
}

@keyframes iconBounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   10. PRICING SECTION
   ============================================ */
#precios {
    padding: 6rem 5%;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* --- CARD BASE --- */
.pricing-card {
    background: var(--cream-bg);
    border-radius: 25px;
    padding: 2.25rem 2rem 1.75rem; /* Reducido abajo */
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    overflow: hidden; /* Necesario para que el lazo se corte en la esquina */
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cyan-accent), var(--pink-accent));
    border-radius: 25px 25px 0 0;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(64, 196, 212, 0.3);
    border-color: var(--cyan-accent);
}

/* Highlight cuando el usuario pasa sobre una card (para el botón unificado) */
.pricing-card.plan-highlight {
    border-color: var(--pink-accent);
    box-shadow: 0 20px 50px rgba(255, 64, 148, 0.25);
}

/* --- CARD DESTACADA (FEATURED) --- */
.pricing-card.featured {
    background: linear-gradient(135deg, var(--cyan-accent) 0%, var(--pink-accent) 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 64, 148, 0.4);
    border: 3px solid var(--pink-accent);
}

.pricing-card.featured::before {
    background: var(--white);
    height: 8px;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .pricing-features li {
    color: var(--white);
}

.pricing-card.featured .pricing-features li::before {
    background: var(--white);
    color: var(--pink-accent);
}

.pricing-card.featured:hover {
    transform: translateY(-20px) scale(1.08);
    box-shadow: 0 25px 60px rgba(255, 64, 148, 0.5);
}

/* --- ELEMENTOS INTERNOS --- */
.pricing-card h3 {
    font-size: 1.75rem; /* Un poco más pequeño */
    margin-bottom: 0.5rem; /* Reducido de 1rem */
    color: var(--cyan-accent);
    font-weight: 700;
}

.pricing-card p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Eliminados estilos obsoletos de .price e .price-iva por colisión con .price-container */

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem; /* Reducido de 2.5rem */
    text-align: left;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features li {
    padding: 0.5rem 0; /* Reducido de 0.8rem o 0.6rem */
    color: var(--dark-text);
    position: relative;
    padding-left: 3rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-features .gratis{
    color: var(--pink-accent);
    font-weight: 700;
    font-size: 21px;
}

.pricing-features .gratis-blanco{
    color: var(--white);
    font-weight: 700;
    font-size: 22px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--white);
    background: var(--pink-accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    top: 50%;
    transform: translateY(-50%);
}

.featured-badge {
    position: absolute;
    top: -18px;
    right: 20px;
    background: var(--white);
    color: var(--pink-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg);
    z-index: 10;
}

/* ===== BOTÓN UNIFICADO DE PRECIOS ===== */
.pricing-cta-wrapper {
    text-align: center;
    margin-top: 5rem;
}

.pricing-cta-subtitle {
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.cta-button--pricing {
    font-size: 1.3rem;
    padding: 1.2rem 3.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-button--pricing i {
    font-size: 1.1rem;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--cyan-accent), var(--pink-accent));
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--white), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-dot {
    position: relative;
    display: inline-block;
}

.footer-dot::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: -4px;
    right: -2px;
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.footer-tagline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ===== GRID DE CONTACTO DEL FOOTER ===== */
.footer-contact-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.footer-contact-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.footer-contact-item i {
    font-size: 1.1rem;
}

/* WhatsApp float oculto cuando el footer es visible */
.whatsapp-float.hide-on-footer {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* ===== FOOTER LOGO — mismo markup, solo color blanco ===== */
.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Modifier: cuando el logo está en el footer, todo pasa a blanco */
.logo-link--white .logo-text {
    color: var(--white);
}

.logo-link--white .bouncing-ball {
    background: var(--white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Las animaciones de breathe y bounce ya están definidas arriba y funcionan igual */
.logo-link--white:hover .bouncing-ball {
    animation: bounce 0.8s ease-in-out infinite;
}

/* ===== LEGAL LINKS ===== */
.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-legal-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-legal-sep {
    opacity: 0.5;
}

.copyright {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ============================================
   12. WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--pink-accent);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(255, 64, 148, 0.4);
    z-index: 999;
    transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    animation: floatPulse 2s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 30px rgba(255, 64, 148, 0.4);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(255, 64, 148, 0.5);
    }
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--pink-accent);
    border-radius: 50px;
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 64, 148, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 2;
}

.whatsapp-icon i {
    display: block;
}

.whatsapp-text {
    z-index: 2;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ============================================
   13. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    *, body {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* En móvil el logo ya está a la izquierda naturalmente */

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--cream-bg);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo-text {
        font-size: 3rem;
    }

    .section-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .section-title::before {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
        transform: none !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
        order: -1;
    }

    .ventajas-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .tech-carousel-container {
        padding: 0 50px;
    }

    .tech-carousel {
        height: 300px;
    }
    
    .tech-item {
        width: 280px;
        height: 280px;
        padding: 2rem;
    }
    
    .tech-item.prev,
    .tech-item.next {
        display: none;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
    }

    .whatsapp-text {
        font-size: 0.85rem;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .whatsapp-float {
        padding: 10px 16px;
    }

    .whatsapp-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   14. PREFERENCIAS DE ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   15. PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .custom-cursor {
        display: none !important;
    }
    
    section {
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }
}