/* ============================================================
   ShinraCode · Estilos personalizados
   Diseño aesthetic + glassmorphism + micro-interacciones
   ============================================================ */

/* Variables globales de color */
:root {
    --primario: #00B8FF;
    --fondo: #0D1B2A;
    --fondo-2: #1B2838;
    --claro: #F1FAEE;
    --cielo: #80FF00;
    --dorado: #F4A261;
}

/* Reset y scroll suave global */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--fondo);
    color: var(--claro);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar personalizado aesthetic */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--fondo);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primario), var(--fondo-2));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primario);
}

/* Selección de texto */
::selection {
    background-color: var(--primario);
    color: var(--claro);
}

/* ============================================================
   FONDO ANIMADO con blobs (gradientes en movimiento)
   ============================================================ */
.fondo-animado {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primario);
    top: -100px;
    left: -100px;
    animation: blob-mover-1 20s ease-in-out infinite;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--cielo);
    bottom: -150px;
    right: -150px;
    animation: blob-mover-2 25s ease-in-out infinite;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--dorado);
    top: 50%;
    left: 50%;
    animation: blob-mover-3 30s ease-in-out infinite;
}

@keyframes blob-mover-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 100px) scale(1.1); }
    66% { transform: translate(-50px, 200px) scale(0.9); }
}

@keyframes blob-mover-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-150px, -100px) scale(1.2); }
    66% { transform: translate(100px, -200px) scale(0.95); }
}

@keyframes blob-mover-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-30%, -70%) scale(1.15); }
}

/* ============================================================
   NAVBAR con glassmorphism
   ============================================================ */
.navbar-glass {
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(13, 27, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Logo icónico */
.logo-icono {
    background: linear-gradient(135deg, var(--primario) 0%, #0082B8 100%);
    box-shadow: 0 4px 20px rgba(0, 184, 255,0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .logo-icono {
    transform: rotate(-8deg) scale(1.05);
}

/* Enlaces navbar */
.nav-link {
    position: relative;
    color: rgba(241, 250, 238, 0.7);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primario), var(--dorado));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--claro);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón hamburguesa */
.hamburguesa-linea {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--claro);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#btnMenu.activo .hamburguesa-linea:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#btnMenu.activo .hamburguesa-linea:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#btnMenu.activo .hamburguesa-linea:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú mobile */
.menu-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    padding-top: 80px;
}

.menu-mobile.activo {
    transform: translateX(0);
}

.nav-link-mobile {
    color: rgba(241, 250, 238, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link-mobile:hover {
    color: var(--primario);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primario {
    background: linear-gradient(135deg, var(--primario) 0%, #0082B8 100%);
    color: var(--claro);
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 184, 255,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
}

.btn-primario::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 184, 255,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primario:hover::before {
    transform: translateX(100%);
}

.btn-primario:active {
    transform: translateY(0);
}

.btn-secundario {
    background: rgba(255, 255, 255, 0.05);
    color: var(--claro);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-secundario:hover {
    background: rgba(128, 255, 0,0.1);
    border-color: var(--cielo);
    transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(0, 184, 255,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(128, 255, 0,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: gradiente-pulso 8s ease-in-out infinite;
}

@keyframes gradiente-pulso {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(241, 250, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 250, 238, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    z-index: 1;
}

/* Texto con gradiente animado */
.texto-gradiente {
    background: linear-gradient(135deg, var(--primario) 0%, var(--dorado) 50%, var(--primario) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradiente-fluir 4s linear infinite;
}

.texto-gradiente-2 {
    background: linear-gradient(135deg, var(--cielo) 0%, var(--claro) 50%, var(--cielo) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradiente-fluir 5s linear infinite;
}

@keyframes gradiente-fluir {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Glass suave usado en pills/etiquetas */
.glass-suave {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Etiqueta de sección */
.etiqueta-seccion {
    display: inline-block;
    color: var(--primario);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================================
   TARJETAS DE SERVICIOS (glassmorphism + borde gradient)
   ============================================================ */
.card-servicio {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-servicio:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-servicio-borde {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 184, 255,0.5), rgba(128, 255, 0,0.2), rgba(244, 162, 97, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.card-servicio:hover .card-servicio-borde {
    opacity: 1;
}

.card-servicio-contenido {
    position: relative;
    background: rgba(27, 40, 56, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-icono {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primario) 0%, #0082B8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--claro);
    box-shadow: 0 8px 25px rgba(0, 184, 255,0.35);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-servicio:hover .card-icono {
    transform: rotate(-8deg) scale(1.1);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cielo);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.card-link:hover {
    color: var(--dorado);
    gap: 0.75rem;
}

/* ============================================================
   PORTAFOLIO
   ============================================================ */
.card-portafolio {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-portafolio::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primario), transparent 40%, transparent 60%, var(--cielo));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

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

.card-portafolio:hover::before {
    opacity: 1;
}

.card-portafolio-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-portafolio:hover .card-portafolio-img {
    transform: scale(1.05);
}

.card-portafolio-icono {
    font-size: 5rem;
    color: rgba(241, 250, 238, 0.2);
    transition: all 0.5s ease;
}

.card-portafolio:hover .card-portafolio-icono {
    color: rgba(241, 250, 238, 0.4);
    transform: scale(1.1);
}

.card-portafolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.5s ease;
}

.card-portafolio:hover .card-portafolio-overlay {
    background: linear-gradient(to top, rgba(13, 27, 42, 0.98) 0%, rgba(13, 27, 42, 0.7) 60%, rgba(13, 27, 42, 0.2) 100%);
}

.card-portafolio-link {
    color: var(--primario);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================================
   SECCIÓN SOBRE NOSOTROS
   ============================================================ */
.valor-icono {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 184, 255,0.12);
    color: var(--primario);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 184, 255,0.25);
}

/* Mockup de código aesthetic */
.codigo-mockup {
    background: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.codigo-mockup:hover {
    transform: translateY(-4px);
}

.codigo-header {
    background: rgba(27, 40, 56, 0.8);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.codigo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.codigo-body {
    padding: 1.5rem 1.25rem;
    overflow-x: auto;
}

.codigo-linea {
    padding: 0.15rem 0;
    color: rgba(241, 250, 238, 0.85);
    white-space: nowrap;
}

.cursor-blink {
    color: var(--primario);
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================================
   CARRUSEL DE TESTIMONIOS
   ============================================================ */
.carrusel-wrapper {
    overflow: hidden;
    border-radius: 24px;
}

.carrusel-pista {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonio-slide {
    min-width: 100%;
    padding: 0 0.5rem;
}

.card-testimonio {
    background: rgba(27, 40, 56, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.card-testimonio::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 184, 255,0.15) 0%, transparent 60%);
}

.card-quote {
    font-size: 2.5rem;
    color: var(--primario);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primario) 0%, var(--dorado) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--claro);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 184, 255,0.3);
}

.carrusel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--claro);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carrusel-btn:hover {
    background: var(--primario);
    border-color: var(--primario);
    transform: scale(1.1);
}

.carrusel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carrusel-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primario);
}

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.form-glass {
    background: rgba(27, 40, 56, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
}

.info-contacto-card {
    background: rgba(27, 40, 56, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.4s ease;
}

.info-contacto-card:hover {
    background: rgba(27, 40, 56, 0.6);
    border-color: rgba(0, 184, 255,0.3);
    transform: translateX(4px);
}

.info-icono {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primario) 0%, #0082B8 100%);
    color: var(--claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 184, 255,0.3);
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-grupo label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(241, 250, 238, 0.85);
    margin-left: 0.25rem;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--claro);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-grupo input::placeholder,
.form-grupo textarea::placeholder {
    color: rgba(241, 250, 238, 0.35);
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--primario);
    background: rgba(13, 27, 42, 0.85);
    box-shadow: 0 0 0 4px rgba(0, 184, 255,0.15);
}

.form-grupo select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F1FAEE'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 2.5rem;
}

.form-grupo select option {
    background: var(--fondo-2);
    color: var(--claro);
}

.form-grupo textarea {
    resize: vertical;
    min-height: 120px;
}

.form-grupo.error input,
.form-grupo.error select,
.form-grupo.error textarea {
    border-color: var(--primario);
    box-shadow: 0 0 0 4px rgba(0, 184, 255,0.1);
}

.form-error {
    color: var(--primario);
    font-size: 0.8rem;
    min-height: 1rem;
    margin-left: 0.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-titulo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--claro);
}

.footer-link {
    color: rgba(241, 250, 238, 0.6);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primario);
    padding-left: 4px;
}

.red-social {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(241, 250, 238, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.red-social:hover {
    background: var(--primario);
    border-color: var(--primario);
    color: var(--claro);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 184, 255,0.4);
}

/* ============================================================
   WIDGET WHATSAPP FLOTANTE con dos números
   ============================================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.btn-whatsapp {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-whatsapp:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Cambio de ícono cuando el widget está abierto */
.btn-whatsapp .icono-cerrar {
    position: absolute;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    transition: all 0.3s ease;
}

.btn-whatsapp .icono-wa {
    transition: all 0.3s ease;
}

.whatsapp-widget.abierto .btn-whatsapp .icono-wa {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.whatsapp-widget.abierto .btn-whatsapp .icono-cerrar {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.whatsapp-widget.abierto .btn-whatsapp:hover {
    transform: scale(1.05);
}

/* Panel desplegable con las dos opciones */
.whatsapp-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-widget.abierto .whatsapp-opciones {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-opcion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: var(--claro);
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-opcion:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateX(-4px);
}

.whatsapp-opcion i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.whatsapp-opcion-titulo {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(241, 250, 238, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.whatsapp-opcion-numero {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--claro);
}

.pulso {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulso-anim 2s ease-out infinite;
    z-index: -1;
}

.pulso-2 {
    animation-delay: 1s;
}

/* El pulso se detiene cuando el widget está abierto */
.whatsapp-widget.abierto .pulso {
    animation-play-state: paused;
    opacity: 0;
}

@keyframes pulso-anim {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   ANIMACIONES de aparición al hacer scroll (reveal)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE (mobile-first + ajustes específicos)
   ============================================================ */
@media (max-width: 768px) {
    .card-servicio-contenido {
        padding: 2rem;
    }
    .form-glass {
        padding: 1.75rem;
    }
    .card-testimonio {
        padding: 2rem;
    }
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    .btn-whatsapp {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    .whatsapp-opcion {
        min-width: 220px;
        padding: 10px 14px;
    }
    .blob {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .form-glass {
        padding: 1.25rem;
    }
    .card-portafolio-overlay {
        padding: 1.5rem;
    }
    .card-quote {
        font-size: 2rem;
    }
}

/* Prefiere movimiento reducido — accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
