/* ============================================
   IMPORTAR TIPOGRAFÍAS PERSONALIZADAS
   ============================================ */

@font-face {
    font-family: 'Montserrat';
    src: url('tipografias/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* ============================================
   ESTILOS GLOBALES Y VARIABLES
   ============================================ */

:root {
    --color-primary: #0B1120;
    --color-secondary: #00E5FF;
    --color-accent: #FF2E88;
    --color-text: #F1F5F9;
    --color-text-light: #A1A1AA;
    --color-bg: #0B1120;
    --color-bg-light: #0B1120;
    --color-border: #334155;
    --color-success: #7B2FF7;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-header: 'Montserrat', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --border-radius: 12px;
    --transition: all 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 130px;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   CONTENEDOR Y LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

.navbar {
    position: sticky;
    top: 0;
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.4);
    z-index: 1;
}

.navbar-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
}

.logo-img {
    height: 95px;
    width: auto;
    transform: scale(1.12);
    transform-origin: center;

    /* Glow tecnológico suave del logo */
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.25))
            drop-shadow(0 0 12px rgba(0, 229, 255, 0.1));

    /* Animación inicial al cargar la página */
    animation: logoGlowIntro 1.4s ease-out;

    transition: filter 0.35s ease 0.12s;

    cursor: pointer;
    will-change: auto;
}

/* Estado hover: intensificar glow y escalar ligeramente */
.logo-img:hover {
    transition-delay: 0.12s;

    /* Glow intenso y progresivo en hover */
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5))
            drop-shadow(0 0 16px rgba(0, 229, 255, 0.3))
            drop-shadow(0 0 24px rgba(123, 47, 247, 0.15));
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.35);
}

.menu-toggle {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 0;
    z-index: 3;
}

.menu-toggle span {
    position: absolute;
    left: 9px;
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 3px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 11px;
}

.menu-toggle span:nth-child(2) {
    top: 19px;
}

.menu-toggle span:nth-child(3) {
    top: 27px;
}

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

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
                inset 0 0 16px rgba(0, 229, 255, 0.26),
                inset 0 -10px 16px rgba(255, 46, 136, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 0 20px rgba(0, 229, 255, 0.34),
                inset 0 -12px 18px rgba(255, 46, 136, 0.26);
}

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

.btn-secondary:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-1px);
}

/* Botón oscuro específico del Hero */
.hero-buttons .btn-hero-dark {
    background: #111827;
    color: var(--color-text);
    border: 2px solid #334155;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.2),
                inset 0 0 16px rgba(14, 165, 233, 0.14),
                inset 0 -10px 18px rgba(59, 130, 246, 0.14);
    text-shadow: 0 0 8px rgba(125, 211, 252, 0.28);
}

.hero-buttons .btn-hero-dark:hover {
    background: #0b1120;
    color: #7dd3fc;
    border-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.3),
                inset 0 0 20px rgba(14, 165, 233, 0.24),
                inset 0 -12px 20px rgba(59, 130, 246, 0.2);
}

.btn:active,
.hero-buttons .btn-hero-dark:active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24),
                inset 0 0 14px rgba(0, 229, 255, 0.28);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

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

.hero {
    padding: var(--spacing-2xl) 0;
    background: #0F172A;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1.2s ease-out;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s ease-out;
}

.hero-mockup {
    width: 420px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 16px 32px rgba(0, 229, 255, 0.2));
    animation: float 4.8s ease-in-out infinite;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Glow de entrada para el logo (temática espacial) */
@keyframes logoGlowIntro {
    0% {
        filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0))
                drop-shadow(0 0 0 rgba(123, 47, 247, 0));
    }
    60% {
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4))
                drop-shadow(0 0 20px rgba(123, 47, 247, 0.2));
    }
    100% {
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.25))
                drop-shadow(0 0 12px rgba(0, 229, 255, 0.1));
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Clase para animación scroll */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

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

section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SECCIÓN DE SERVICIOS
   ============================================ */

.servicios {
    background: var(--color-bg-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.servicio-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-clip: padding-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 8px 24px rgba(8, 47, 73, 0.26),
                0 0 16px rgba(0, 229, 255, 0.18);
    transition: var(--transition);
    cursor: pointer;
}

.servicio-card::after {
    content: none;
}

.servicio-card:hover {
    transform: translateY(-7px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(8, 47, 73, 0.35),
                0 0 24px rgba(0, 229, 255, 0.28);
    border-color: rgba(125, 211, 252, 0.75);
}

.servicio-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 47, 73, 0.28),
                0 0 14px rgba(0, 229, 255, 0.2);
    border-color: rgba(125, 211, 252, 0.55);
}

.servicio-card:active::after {
    opacity: 1;
}

.servicio-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.36))
            drop-shadow(0 0 18px rgba(14, 165, 233, 0.2));
}

.servicio-icon img {
    width: 64px;
    height: 64px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.servicio-card:hover .servicio-icon {
    filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.48))
            drop-shadow(0 0 26px rgba(14, 165, 233, 0.3));
}

.servicio-card:hover h3 {
    color: #7dd3fc;
}

.servicio-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

.servicio-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   SECCIÓN DE BENEFICIOS
   ============================================ */

.beneficios {
    background: radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.12), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(123, 47, 247, 0.18), transparent 40%),
                #0b1120;
    position: relative;
}

.beneficios::before,
.beneficios::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 130px;
    pointer-events: none;
    z-index: 0;
}

.beneficios::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0) 100%);
}

.beneficios::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0) 100%);
}

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

.beneficios-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.beneficio-item {
    display: flex;
    gap: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    background-clip: padding-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.beneficio-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(125, 211, 252, 0.5);
    box-shadow: 0 10px 24px rgba(8, 47, 73, 0.26),
                0 0 14px rgba(0, 229, 255, 0.2);
}

.check-icon {
    background: var(--color-success);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 0 12px rgba(123, 47, 247, 0.45);
}

.beneficio-text h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: #f8fafc;
}

.beneficio-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ============================================
   SECCIÓN DE PORTAFOLIO
   ============================================ */

.portafolio {
    background: var(--color-bg-light);
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.portafolio-card {
    background: #0f172a;
    border: 1px solid rgba(125, 211, 252, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-clip: padding-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(8, 47, 73, 0.26),
                0 0 14px rgba(0, 229, 255, 0.16);
}

.portafolio-card:hover {
    transform: translateY(-7px) scale(1.015);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(125, 211, 252, 0.62);
    box-shadow: 0 14px 32px rgba(8, 47, 73, 0.34),
                0 0 22px rgba(0, 229, 255, 0.25);
}

.proyecto-imagen {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-emoji {
    position: relative;
    z-index: 2;
    font-size: clamp(3.2rem, 8vw, 5.1rem);
    line-height: 1;
    filter: drop-shadow(0 8px 22px rgba(0, 229, 255, 0.24));
}

.proyecto-icon-sliders {
    width: clamp(90px, 20vw, 136px);
    height: clamp(90px, 20vw, 136px);
    display: block;
    background: url('logos/sliders-horizontal.svg') center / contain no-repeat;
    filter: brightness(0) invert(1) drop-shadow(0 8px 22px rgba(0, 229, 255, 0.24));
}

.proyecto-icon-cake {
    width: clamp(90px, 20vw, 136px);
    height: clamp(90px, 20vw, 136px);
    display: block;
    background: url('logos/cake.svg') center / contain no-repeat;
    filter: brightness(0) invert(1) drop-shadow(0 8px 22px rgba(0, 229, 255, 0.24));
}

.proyecto-imagen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 17, 32, 0.08), rgba(11, 17, 32, 0.24));
    z-index: 1;
    pointer-events: none;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.85);
    transition: var(--transition);
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay .btn-small {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border: 1px solid rgba(125, 211, 252, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28),
                inset 0 0 12px rgba(255, 255, 255, 0.14);
}

.overlay .btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.4),
                inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.proyecto-info {
    padding: var(--spacing-lg);
    background: #0f172a;
}

.proyecto-info h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: #f8fafc;
}

.proyecto-tipo {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.proyecto-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.btn-glass-vermas {
    border: 1px solid rgba(125, 211, 252, 0.48);
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 0 14px rgba(0, 229, 255, 0.16);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: var(--spacing-sm);
}

.btn-glass-vermas:hover {
    transform: translateY(-2px);
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(125, 211, 252, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18),
                inset 0 0 18px rgba(0, 229, 255, 0.26);
}

.btn-glass-vermas:active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24),
                inset 0 0 16px rgba(0, 229, 255, 0.3);
}

.btn-glass-vermas[aria-expanded='true'] {
    background: rgba(0, 229, 255, 0.14);
    border-color: rgba(0, 229, 255, 0.66);
    color: #e0f2fe;
}

.proyecto-desc-expandible {
    margin-top: var(--spacing-xs);
    line-height: 1.72;
    animation: fadeExpand 0.35s ease;
}

@keyframes fadeExpand {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portafolio-card:hover .proyecto-info h3 {
    color: #7dd3fc;
}

/* ============================================
   SECCIÓN DE PRECIOS
   ============================================ */

.precios {
    background: radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.08), transparent 42%),
                radial-gradient(circle at 85% 10%, rgba(123, 47, 247, 0.12), transparent 38%),
                #0b1120;
    position: relative;
}

.precios::before,
.precios::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 85px;
    pointer-events: none;
    z-index: 0;
}

.precios::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(11, 17, 32, 0.92) 0%, rgba(11, 17, 32, 0) 100%);
}

.precios::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.92) 0%, rgba(11, 17, 32, 0) 100%);
}

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

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.precio-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 211, 252, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    background-clip: padding-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 10px 28px rgba(8, 47, 73, 0.28),
                0 0 16px rgba(0, 229, 255, 0.18);
}

.precio-card:hover {
    transform: translateY(-7px) scale(1.015);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(125, 211, 252, 0.68);
    box-shadow: 0 16px 36px rgba(8, 47, 73, 0.36),
                0 0 24px rgba(0, 229, 255, 0.26);
}

.precio-card.destacado {
    border-color: rgba(0, 229, 255, 0.8);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.14) 0%, rgba(255, 46, 136, 0.12) 100%);
    transform: scale(1.05);
    box-shadow: 0 16px 38px rgba(8, 47, 73, 0.38),
                0 0 26px rgba(0, 229, 255, 0.34),
                0 0 34px rgba(255, 46, 136, 0.2);
}

.precio-card.destacado:hover {
    box-shadow: 0 18px 44px rgba(8, 47, 73, 0.42),
                0 0 28px rgba(0, 229, 255, 0.38),
                0 0 40px rgba(255, 46, 136, 0.24);
}

.badge {
    position: absolute;
    top: -14px;
    right: 25px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.96), rgba(0, 229, 255, 0.84));
    color: #03111f;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.65),
                0 0 30px rgba(0, 229, 255, 0.42),
                0 4px 14px rgba(11, 17, 32, 0.45);
    z-index: 2;
}

.plan-header {
    margin-bottom: var(--spacing-md);
}

.plan-nombre {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: var(--spacing-xs);
}

.plan-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.plan-precio {
    margin-bottom: var(--spacing-lg);
}

.moneda {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.cantidad {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 var(--spacing-xs);
}

.periodo {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.plan-features li {
    padding: var(--spacing-sm) 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(125, 211, 252, 0.24);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.precios .btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.08) 100%);
    color: #e6faff;
    border: 1px solid rgba(125, 211, 252, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.5),
                inset 0 0 16px rgba(0, 229, 255, 0.22),
                inset 0 -10px 16px rgba(11, 17, 32, 0.24);
}

.precios .btn:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.85);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.66),
                inset 0 0 20px rgba(0, 229, 255, 0.32),
                inset 0 -12px 18px rgba(11, 17, 32, 0.3);
}

.precios .btn:active {
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.78),
                inset 0 0 16px rgba(0, 229, 255, 0.34),
                inset 0 -10px 16px rgba(11, 17, 32, 0.35);
}

.precios .btn.btn-primary {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(255, 46, 136, 0.3));
    border-color: rgba(125, 211, 252, 0.75);
}

.precio-card.destacado .btn {
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.64),
                inset 0 0 22px rgba(0, 229, 255, 0.36),
                inset 0 -12px 18px rgba(255, 46, 136, 0.24);
}

.precio-card.destacado .btn:hover {
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.75),
                inset 0 0 24px rgba(0, 229, 255, 0.42),
                inset 0 -14px 20px rgba(255, 46, 136, 0.3);
}

.precios .btn.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    color: #dff9ff;
}

/* ============================================
   SECCIÓN SOBRE MÍ
   ============================================ */

.sobre-mi {
    background: var(--color-bg-light);
}

.sobre-mi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.placeholder-avatar {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #7B2FF7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.4);
}

.sobre-mi-texto p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.badge-skill {
    background: var(--color-secondary);
    color: #0F172A;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */

.contacto {
    background: linear-gradient(135deg, #0B1120 0%, #0B1120 100%);
    color: white;
}

.contacto .section-title,
.contacto .section-subtitle {
    color: white;
}

.contacto-cards {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-2xl);
}

.formulario-container {
    width: 100%;
    max-width: 700px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.telefono-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.65fr) minmax(230px, 1.35fr);
    gap: var(--spacing-sm);
    align-items: center;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    border-radius: 16px;
    background-image: none;
    padding-right: 44px;
}

.pais-select-wrapper {
    position: relative;
    width: 100%;
}

.pais-select-wrapper #paisTelefonoSelect {
    padding-right: 42px;
}

.pais-select-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 10px;
    height: 10px;
    border-left: 2px solid #00e5ff;
    border-bottom: 2px solid #00e5ff;
    transform: translateY(-50%) rotate(135deg);
    pointer-events: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

/* Estado cerrado: flecha hacia arriba */
.pais-select-wrapper .pais-select-arrow {
    transform: translateY(-35%) rotate(135deg);
}

/* Estado abierto: opciones visibles, flecha hacia abajo */
.pais-select-wrapper.is-open .pais-select-arrow {
    transform: translateY(-55%) rotate(-45deg);
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.4));
}

.telefono-grid #telefono {
    border-radius: 16px;
}

.form-group select option {
    background: #0b1120;
    color: #f1f5f9;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-secondary);
}

/* Hover renovado para la fila de pais/codigo + celular */
.telefono-grid #paisTelefonoSelect:hover,
.telefono-grid #telefono:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(125, 211, 252, 0.72);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2),
                0 0 16px rgba(0, 229, 255, 0.14);
}

/* ============================================
   WhatsApp Floating Button (Chat Bubble)
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12),
                inset 0 0 18px rgba(0, 229, 255, 0.28);
    transition: var(--transition);
    color: var(--color-primary);
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-8px);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2),
                inset 0 0 22px rgba(0, 229, 255, 0.4);
}

.whatsapp-float:active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.26),
                inset 0 0 20px rgba(0, 229, 255, 0.44);
}

.whatsapp-float img.whatsapp-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 62px;
        height: 62px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float img.whatsapp-logo {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float img.whatsapp-logo {
        width: 50px;
        height: 50px;
    }
}

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

.footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer p {
    margin: var(--spacing-sm) 0;
    font-size: 0.95rem;
}

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

@media (max-width: 768px) {
    .navbar-content {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 84px;
        right: var(--spacing-md);
        width: min(260px, 85vw);
        padding: var(--spacing-md);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 250;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) 0;
    }

    .hero-content {
        width: 100%;
        padding: 0 calc(var(--spacing-sm) + 0.25rem);
    }

    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2rem);
        line-height: 1.25;
        margin-bottom: calc(var(--spacing-sm) + 0.25rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: calc(var(--spacing-sm) + 0.2rem);
        gap: calc(var(--spacing-sm) + 0.35rem);
    }

    .hero-buttons .btn {
        width: 100%;
        font-size: 0.95rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .hero-mockup {
        width: min(320px, 92%);
    }

    .section-title {
        font-size: 2rem;
    }

    .sobre-mi-content {
        grid-template-columns: 1fr;
    }

    .placeholder-avatar {
        width: 250px;
        height: 250px;
        font-size: 80px;
        margin: 0 auto;
    }

    .precio-card.destacado {
        transform: scale(1);
    }

    .servicios-grid,
    .portafolio-grid,
    .precios-grid,
    .beneficios-list {
        grid-template-columns: 1fr;
    }

    .legacy-tilt-only {
        transform: none !important;
    }

    .legacy-tilt-only:active {
        transform: translateY(-7px) scale(1.015) !important;
    }

    /* Ajustar degradados en móvil */
    .beneficios {
        background: radial-gradient(ellipse at 20% 15%, rgba(0, 229, 255, 0.14), transparent 65%),
                    radial-gradient(ellipse at 80% 85%, rgba(123, 47, 247, 0.2), transparent 60%),
                    #0b1120;
    }

    .precios {
        background: radial-gradient(ellipse at 15% 10%, rgba(0, 229, 255, 0.1), transparent 60%),
                    radial-gradient(ellipse at 85% 90%, rgba(123, 47, 247, 0.15), transparent 55%),
                    #0b1120;
    }
}

/* En pantallas tactiles, evitar inclinaciones por hover/click y dejar solo salto */
@media (hover: none), (pointer: coarse) {
    .servicio-card,
    .beneficio-item,
    .portafolio-card,
    .precio-card,
    .precio-card.destacado,
    .legacy-tilt-only {
        transform: none !important;
    }

    .servicio-card:hover,
    .beneficio-item:hover,
    .portafolio-card:hover,
    .precio-card:hover,
    .precio-card.destacado:hover,
    .legacy-tilt-only:hover {
        transform: none !important;
    }

    .servicio-card:active,
    .beneficio-item:active,
    .portafolio-card:active,
    .precio-card:active,
    .precio-card.destacado:active,
    .legacy-tilt-only:active {
        transform: translateY(-7px) scale(1.015) !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero .container {
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }

    .hero-content {
        padding: 0 calc(var(--spacing-sm) + 0.1rem);
    }

    .hero-title {
        font-size: clamp(1.2rem, 7.2vw, 1.45rem);
        line-height: 1.28;
        margin-bottom: calc(var(--spacing-xs) + 0.25rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.62;
        margin-bottom: calc(var(--spacing-sm) + 0.1rem);
    }

    .hero-buttons {
        margin-top: calc(var(--spacing-xs) + 0.2rem);
        gap: calc(var(--spacing-sm) + 0.15rem);
    }

    .hero-image {
        display: flex;
        margin-bottom: var(--spacing-lg);
    }

    .hero-mockup {
        width: min(280px, 86vw);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-links {
        top: 78px;
        right: var(--spacing-sm);
        width: min(230px, 90vw);
        gap: var(--spacing-sm);
    }

    .skills-badges {
        gap: var(--spacing-xs);
    }

    .badge-skill {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .formulario-container {
        padding: 0 var(--spacing-md);
    }

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

    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }

    /* Ajustar aún más los degradados en pantallas pequeñas */
    .beneficios {
        background: radial-gradient(ellipse at 20% 10%, rgba(0, 229, 255, 0.16), transparent 70%),
                    radial-gradient(ellipse at 80% 90%, rgba(123, 47, 247, 0.22), transparent 65%),
                    #0b1120;
    }

    .precios {
        background: radial-gradient(ellipse at 15% 8%, rgba(0, 229, 255, 0.12), transparent 65%),
                    radial-gradient(ellipse at 85% 92%, rgba(123, 47, 247, 0.18), transparent 60%),
                    #0b1120;
    }
}

@media (max-width: 420px) {
    .telefono-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .form-group select,
    .form-group input#telefono {
        font-size: 0.92rem;
        padding: 0.78rem;
    }
}

@media (max-width: 360px) {
    .hero-mockup {
        width: min(240px, 84vw);
    }

    .hero-image {
        margin-bottom: var(--spacing-md);
    }
}
