@property --specular-x {
    syntax: "<percentage>";
    initial-value: 20%;
    inherits: false;
}

@property --specular-y {
    syntax: "<percentage>";
    initial-value: 15%;
    inherits: false;
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* ============================================
   PORTFOLIO - Javier Vidal Miguel
   Dark, clean, developer aesthetic
   ============================================ */

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

:root {
    --bg: #0b0d17;
    --bg-light: #111425;
    --bg-card: #141730;
    --bg-card-hover: #1a1e3a;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #e8e8ef;
    --text-secondary: rgba(232, 232, 239, 0.6);
    --text-dim: rgba(232, 232, 239, 0.35);
    --accent: #818cf8;
    --accent-soft: rgba(129, 140, 248, 0.15);
    --accent-glow: rgba(129, 140, 248, 0.3);
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, 0.15);
    --max-w: 1100px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

#starField {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* ---- LOADER ---- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.5s var(--ease);
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.wormhole {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wormhole-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
    animation: wormholeSpin linear infinite;
}

.wormhole-ring:nth-child(1) {
    width: 130px; height: 130px;
    border-top-color: rgba(129, 140, 248, 0.6);
    border-right-color: rgba(129, 140, 248, 0.15);
    animation-duration: 3s;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.1);
}

.wormhole-ring:nth-child(2) {
    width: 105px; height: 105px;
    border-bottom-color: rgba(167, 139, 250, 0.5);
    border-left-color: rgba(167, 139, 250, 0.1);
    animation-duration: 2.4s;
    animation-direction: reverse;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.08);
}

.wormhole-ring:nth-child(3) {
    width: 80px; height: 80px;
    border-top-color: rgba(192, 132, 252, 0.5);
    border-right-color: rgba(192, 132, 252, 0.1);
    animation-duration: 1.8s;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.08);
}

.wormhole-ring:nth-child(4) {
    width: 55px; height: 55px;
    border-bottom-color: rgba(129, 140, 248, 0.6);
    border-left-color: rgba(129, 140, 248, 0.15);
    animation-duration: 1.3s;
    animation-direction: reverse;
}

.wormhole-ring:nth-child(5) {
    width: 32px; height: 32px;
    border-top-color: rgba(255, 255, 255, 0.4);
    border-right-color: rgba(255, 255, 255, 0.08);
    animation-duration: 0.9s;
}

.wormhole-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.8), rgba(167, 139, 250, 0.4) 50%, transparent 70%);
    box-shadow:
        0 0 20px rgba(129, 140, 248, 0.4),
        0 0 40px rgba(129, 140, 248, 0.2),
        0 0 60px rgba(129, 140, 248, 0.1);
    animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes wormholeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 20px rgba(129,140,248,0.4), 0 0 40px rgba(129,140,248,0.2); }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 30px rgba(129,140,248,0.6), 0 0 60px rgba(129,140,248,0.3), 0 0 80px rgba(129,140,248,0.1); }
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: loaderDot 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* ---- MAIN CONTENT ---- */
.main-content {
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

.main-content.visible {
    opacity: 1;
}

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s var(--ease);
    background: transparent;
}

nav.scrolled {
    padding: 0.6rem 0;
    background: rgba(11, 13, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-j {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 18px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
    position: absolute;
    left: 0;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---- SECTIONS ---- */
section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: var(--accent-soft);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Servicios section uses centered title with decorative line */
#servicios > .section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3rem;
    padding-bottom: 1.25rem;
}

#servicios > .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.6), rgba(167, 139, 250, 0.6));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.section-subtitle strong {
    color: var(--text);
}

/* ---- REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ---- HERO ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green);
    background: var(--green-soft);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

@keyframes cardBreathe {
    0%, 100% { background-size: 100% 100%, 150% 150%; background-position: 50%, 50%; filter: brightness(1); }
    50% { background-size: 100% 100%, 210% 210%; background-position: 50%, 30%; filter: brightness(1.15); }
}

@keyframes specularDrift {
    0% { --specular-x: 20%; --specular-y: 15%; }
    25% { --specular-x: 75%; --specular-y: 25%; }
    50% { --specular-x: 80%; --specular-y: 75%; }
    75% { --specular-x: 25%; --specular-y: 80%; }
    100% { --specular-x: 20%; --specular-y: 15%; }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero-name {
    background: linear-gradient(135deg, var(--accent), #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero photo wrapper with matrix effect */
.hero-photo-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.matrix-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: rgba(129, 140, 248, 0.2);
    word-break: break-all;
    text-align: center;
    user-select: none;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, rgba(0,0,0,0.3) 60%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, rgba(0,0,0,0.3) 60%, transparent 80%);
}

.matrix-bg span {
    display: inline;
}

.matrix-bg span.bright {
    color: rgba(129, 140, 248, 0.5);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Hero right: photo + socials */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    overflow: visible;
}

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow:
        0 0 40px rgba(129, 140, 248, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--ease);
    position: relative;
    z-index: 1;
    margin: auto;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), transparent 60%);
    pointer-events: none;
}

.hero-photo:hover {
    border-color: var(--accent);
    box-shadow:
        0 0 60px rgba(129, 140, 248, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    background: var(--bg-card);
}

.hero-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

/* Odometer / flip-clock style counter */
.hero-stat-value {
    display: inline-flex;
    align-items: baseline;
    overflow: hidden;
    height: 3.2rem;
}

.hero-stat-digit {
    display: inline-block;
    overflow: hidden;
    height: 3.2rem;
    position: relative;
}

.hero-stat-digit-inner {
    display: flex;
    flex-direction: column;
    transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stat-digit-inner span {
    display: block;
    height: 3.2rem;
    line-height: 3.2rem;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    min-width: 1.6rem;
}

.hero-stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 3.2rem;
}

.hero-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero-stat.counted .hero-stat-label {
    opacity: 1;
    transform: translateY(0);
}

/* ---- MARQUEE ---- */
.marquee-section {
    max-width: 100%;
    padding: 2rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marquee-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.marquee-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.marquee-left {
    animation: marqueeLeft 30s linear infinite;
}

.marquee-right {
    animation: marqueeRight 30s linear infinite;
}


@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.marquee-content {
    display: flex;
    gap: 1rem;
    padding-right: 1rem;
    flex-shrink: 0;
}

.marquee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}

.marquee-badge i {
    font-size: 1rem;
    color: var(--accent);
}

.marquee-badge:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--bg-card-hover);
}

/* ---- CUBE ---- */
.cube-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.skills-3d-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 4rem 0;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-cube-wrapper {
    touch-action: none;
    user-select: none;
    cursor: grab;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    /* La rotacion ahora la maneja 100% el JS — sin CSS animation. */
}

.skills-cube-wrapper:active {
    cursor: grabbing;
}

.cube-face {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 0, rgba(5, 4, 10, 0.3) 60%, rgba(5, 4, 10, 0.7) 100%),
                linear-gradient(135deg, #0c0812, #1c1428 30%, #261c34 60%, #0c0812);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.cube-face.front  { transform: translateZ(200px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(200px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(200px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(200px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(200px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(200px); }

.skill-item-cube {
    background: rgba(5, 4, 10, 0.7);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    /* Sin hover effect: el cubo rota constantemente, asi que el :hover
       se disparaba sin querer y parecia que el cubo "seleccionaba" cards. */
}

.skill-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.skill-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsla(0, 0%, 100%, 0.8);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ---- SERVICES (original carousel) ---- */
.svc-header__subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.svc-header__subtitle strong {
    color: hsla(0, 0%, 100%, 0.9);
    font-weight: 600;
}

.svc-carousel {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.svc-carousel__viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.svc-carousel__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.svc-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.25rem;
    padding: 0.25rem;
}

.svc-card {
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid hsla(0, 0%, 100%, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 hsla(0, 0%, 100%, 0.03);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    background:
        radial-gradient(ellipse 90% 90% at 50% 50%, transparent 0, rgba(5, 4, 10, 0.15) 55%, rgba(5, 4, 10, 0.35) 75%, rgba(5, 4, 10, 0.55) 100%),
        linear-gradient(135deg, #0c0812, #120e1c 3%, #1c1428 8%, #261c34 15%, #342641 25%, #3e2e4b 35%, #3a3046 45%, #36323e 55%, #323437 65%, #343228 75%, #413020 85%, #0a080a);
    background-size: 100% 100%, 130% 130%;
    animation: cardBreathe 8s ease-in-out infinite;
}

.svc-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle), transparent 75%, rgba(var(--card-accent, 255, 255, 255), 0.4) 88%, rgba(var(--card-accent, 255, 255, 255), 0.6) 92%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0;
    animation: borderRotate 6s linear infinite;
    transition: opacity 0.4s ease;
}

.svc-card:hover::after { opacity: 1; }

.svc-card:hover {
    border-color: hsla(0, 0%, 100%, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--card-accent), 0.1), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
}

.svc-card__glass {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, rgba(var(--card-accent), 0.1) 0, rgba(var(--card-accent), 0.03) 50%, rgba(var(--card-accent), 0.08) 100%);
}

.svc-card__specular {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse 40% 30% at var(--specular-x) var(--specular-y), rgba(var(--card-accent), 0.15) 0, rgba(var(--card-accent), 0.06) 40%, transparent 70%);
    animation: specularDrift 8s ease-in-out infinite;
}

.svc-card__body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.svc-card__emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }

.svc-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.svc-card__tagline {
    font-size: 0.65rem;
    color: hsla(0, 0%, 100%, 0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.svc-card__desc-short {
    font-size: 0.82rem;
    line-height: 1.55;
    color: hsla(0, 0%, 100%, 0.5);
    margin-bottom: 0.75rem;
    max-width: 280px;
}

.svc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.svc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
    background: rgba(var(--card-accent, 255, 255, 255), 0.1);
    border: 1px solid rgba(var(--card-accent, 255, 255, 255), 0.35);
    border-radius: 16px;
}

.svc-card__btn { padding: 0.5rem 1.1rem; font-size: 0.8rem; margin-top: auto; }

.svc-carousel__arrow {
    flex-shrink: 0;
    z-index: 20;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    background: rgba(12, 8, 18, 0.9);
    backdrop-filter: blur(12px);
    color: hsla(0, 0%, 100%, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.svc-carousel__arrow:hover {
    background: rgba(129, 140, 248, 0.25);
    border-color: rgba(129, 140, 248, 0.45);
    color: #fff;
    transform: scale(1.1);
}

.svc-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.svc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.svc-dot.active {
    background: rgba(129, 140, 248, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

/* .btn for service cards */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn.btn-primary {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.3), rgba(129, 140, 248, 0.12) 50%, rgba(167, 139, 250, 0.25));
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 2px 16px rgba(129, 140, 248, 0.15);
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.45), rgba(129, 140, 248, 0.2) 50%, rgba(167, 139, 250, 0.35));
    border-color: rgba(129, 140, 248, 0.6);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(129, 140, 248, 0.3);
}

@media (max-width: 768px) {
    .svc-carousel { gap: 0; position: relative; }

    .svc-carousel__arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px; height: 44px;
        z-index: 30;
        background: hsla(0,0%,5%,0.78);
        backdrop-filter: blur(8px);
        border-color: hsla(0,0%,100%,0.15);
    }
    .svc-carousel__arrow--prev { left: 0.5rem; }
    .svc-carousel__arrow--next { right: 0.5rem; }
    .svc-carousel__arrow svg { width: 18px; height: 18px; }

    .svc-carousel__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 0;
        padding: 1.5rem 0;
        perspective: 1400px;
    }
    .svc-carousel__viewport::-webkit-scrollbar { display: none; }

    .svc-carousel__track {
        flex-direction: row !important;
        transform: none !important;
        gap: 0.75rem;
        padding: 0.5rem 10%;
        transform-style: preserve-3d;
    }

    .svc-page { display: contents; }

    .svc-card {
        min-width: 80%;
        max-width: 80%;
        flex-shrink: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transition: filter 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.45s ease;
        filter: blur(3px) brightness(0.55);
        transform: scale(0.86);
        opacity: 0.7;
        transform-origin: center;
        backface-visibility: hidden;
    }
    .svc-card--center {
        filter: none;
        transform: scale(1);
        opacity: 1;
    }
    .svc-card--center::after { opacity: 1; }
    .svc-card--center + .svc-card {
        transform: scale(0.86) rotateY(-22deg);
        transform-origin: left center;
    }
    .svc-card:has(+ .svc-card--center) {
        transform: scale(0.86) rotateY(22deg);
        transform-origin: right center;
    }

    .svc-carousel__dots { display: none; }
}

/* ---- PROJECTS (original bento) ---- */
.projects-header__subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 3rem;
}
.projects-header__subtitle strong { color: hsla(0,0%,100%,0.85); font-weight: 600; }

#proyectos > .section-title { text-align: center; font-size: 2.75rem; margin-bottom: 3rem; padding-bottom: 1.25rem; }
#proyectos > .section-title::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:80px; height:3px; background:linear-gradient(90deg,rgba(129,140,248,0.6),rgba(167,139,250,0.6)); border-radius:2px; }

.projects-layout { display: flex; gap: 1.5rem; max-width: 1200px; width: 100%; }

.projects-sidebar { flex: 0 0 22%; display: flex; flex-direction: column; gap: 0.5rem; z-index: 20; }

.projects-sidebar__card {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.15rem; border-radius: 12px;
    border: 1px solid hsla(0,0%,100%,0.06); background: hsla(0,0%,100%,0.02); cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1); position: relative;
}
.projects-sidebar__card::after {
    content:''; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
    background:conic-gradient(from var(--border-angle),transparent 75%,rgba(var(--card-accent,255,255,255),0.4) 88%,rgba(var(--card-accent,255,255,255),0.6) 92%,transparent 100%);
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite:exclude; -webkit-mask-composite:xor; pointer-events:none; opacity:0; animation:borderRotate 6s linear infinite; transition:opacity 0.4s;
}
.projects-sidebar__text { display:flex; flex-direction:column; gap:0.15rem; min-width:0; }
.projects-sidebar__name { font-size:0.85rem; font-weight:600; color:hsla(0,0%,100%,0.7); transition:color 0.35s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.projects-sidebar__subtitle { font-size:0.65rem; color:hsla(0,0%,100%,0.35); text-transform:uppercase; letter-spacing:0.04em; }
.projects-sidebar__card--active { border-color:rgba(var(--card-accent),0.3); background:rgba(var(--card-accent),0.06); transform:translateX(4px); }
.projects-sidebar__card--active::after { opacity:1; }
.projects-sidebar__card--active .projects-sidebar__name { color:hsla(0,0%,100%,0.95); }
.projects-sidebar__card:hover { background:hsla(0,0%,100%,0.05); border-color:hsla(0,0%,100%,0.1); }

.projects-bento {
    flex:1; display:grid; grid-template-columns:2fr 1.5fr; grid-template-rows:1fr 1fr 1fr 1fr; gap:1rem;
    grid-template-areas:"aegis safety" "chatbot safety" "tanya silencers" "veoplaca veoplacaapp"; min-height:820px;
}
.projects-bento__card--aegis { grid-area:aegis; }
.projects-bento__card--safety { grid-area:safety; }
.projects-bento__card--chatbot { grid-area:chatbot; }
.projects-bento__card--tanya { grid-area:tanya; }
.projects-bento__card--silencers { grid-area:silencers; }
.projects-bento__card--veoplaca { grid-area:veoplaca; }
.projects-bento__card--veoplacaapp { grid-area:veoplacaapp; }

.projects-bento__card {
    position:relative; border-radius:16px; overflow:hidden; border:1px solid hsla(0,0%,100%,0.08);
    display:flex; cursor:pointer; opacity:0; transform:translateY(30px); transition:opacity 0.6s ease,transform 0.6s ease;
}
.projects-bento__card.visible { opacity:1; transform:translateY(0); transition:opacity 0.6s ease,transform 0.4s cubic-bezier(0.4,0,0.2,1),border-color 0.4s,box-shadow 0.4s; }
.projects-bento__card::after {
    content:''; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
    background:conic-gradient(from var(--border-angle),transparent 75%,rgba(var(--card-accent,255,255,255),0.4) 88%,rgba(var(--card-accent,255,255,255),0.6) 92%,transparent 100%);
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite:exclude; -webkit-mask-composite:xor; pointer-events:none; opacity:0; animation:borderRotate 6s linear infinite; transition:opacity 0.4s; z-index:5;
}
.projects-bento__media { position:absolute; inset:0; z-index:1; border-radius:inherit; overflow:hidden; }
.projects-bento__media img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform 0.6s; }
.projects-bento__card--safety .projects-bento__media img { object-position:left top; }
.projects-bento__glass { position:absolute; inset:0; backdrop-filter:blur(2px) saturate(1.1); background:hsla(0,0%,100%,0.03); border-radius:inherit; pointer-events:none; z-index:2; transition:all 0.4s; }
.projects-bento__specular { position:absolute; inset:0; pointer-events:none; z-index:3; border-radius:inherit; background:radial-gradient(ellipse 40% 30% at var(--specular-x) var(--specular-y),rgba(var(--card-accent,128,70,200),0.2) 0,rgba(var(--card-accent,128,70,200),0.08) 40%,transparent 70%); animation:specularDrift 8s ease-in-out infinite; }
.projects-bento__overlay { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; justify-content:flex-end; padding:1.5rem; opacity:0; transform:translateY(8px); transition:all 0.4s cubic-bezier(0.4,0,0.2,1); background:linear-gradient(0deg,rgba(0,0,0,0.88) 0,rgba(0,0,0,0.68) 45%,rgba(0,0,0,0.4) 100%); backdrop-filter:blur(8px) saturate(1.1); -webkit-backdrop-filter:blur(8px) saturate(1.1); border-radius:inherit; overflow:hidden; }
.projects-bento__title { font-size:1.15rem; font-weight:700; color:hsla(0,0%,100%,0.95); margin-bottom:0.35rem; }
.projects-bento__desc { font-size:0.8rem; color:hsla(0,0%,100%,0.65); line-height:1.5; max-width:320px; margin-bottom:0.5rem; }

.project-tech-tags { display:flex; flex-wrap:wrap; gap:0.35rem; margin-bottom:0.75rem; }
.project-tech-tags span { font-size:0.65rem; font-weight:500; color:var(--accent); background:var(--accent-soft); padding:0.2rem 0.6rem; border-radius:100px; border:1px solid rgba(129,140,248,0.2); }

.projects-bento__card--active { z-index:10; border-color:hsla(0,0%,100%,0.15); box-shadow:0 12px 40px rgba(0,0,0,0.6),0 0 20px rgba(var(--card-accent),0.15); }
.projects-bento__card--active.visible { transform:scale(1.03); }
.projects-bento__card--active::after { opacity:1; }
.projects-bento__card--active .projects-bento__overlay { opacity:1; transform:translateY(0); }
.projects-bento__card--active .projects-bento__glass { backdrop-filter:blur(1px) saturate(1.05); background:rgba(0,0,0,0.25); }
.projects-bento__card:hover .projects-bento__overlay { opacity:1; transform:translateY(0); }
.projects-bento__card:hover .projects-bento__glass { background:rgba(0,0,0,0.2); }
.projects-bento__card:hover .projects-bento__media img { transform:scale(1.05); }

/* Modal */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:2000; justify-content:center; align-items:center; backdrop-filter:blur(20px); }
.modal.active { display:flex; }
.modal-content { background:rgba(12,8,18,0.95); border:1px solid hsla(0,0%,100%,0.1); border-radius:20px; width:95%; max-width:1400px; height:92vh; display:flex; flex-direction:column; overflow:hidden; animation:modalSlideIn 0.3s ease-out; box-shadow:0 20px 60px rgba(0,0,0,0.8); }
@keyframes modalSlideIn { from{opacity:0;transform:scale(0.9) translateY(20px);} to{opacity:1;transform:scale(1) translateY(0);} }
.modal-header { display:flex; align-items:center; justify-content:flex-end; padding:0.75rem 1rem; gap:0.75rem; border-bottom:1px solid hsla(0,0%,100%,0.08); flex-shrink:0; }
.modal-open-tab { font-size:0.8rem; font-weight:500; color:hsla(0,0%,100%,0.6); background:none; border:1px solid hsla(0,0%,100%,0.12); border-radius:8px; padding:0.4rem 0.9rem; cursor:pointer; text-decoration:none; transition:all 0.3s; display:inline-flex; align-items:center; gap:0.4rem; }
.modal-open-tab:hover { color:#fff; border-color:rgba(129,140,248,0.4); background:rgba(129,140,248,0.1); }
.modal-close { width:36px; height:36px; background:hsla(0,0%,100%,0.05); border:1px solid hsla(0,0%,100%,0.15); border-radius:50%; color:hsla(0,0%,100%,0.7); font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.3s; }
.modal-close:hover { background:hsla(0,0%,100%,0.1); color:#fff; transform:rotate(90deg); }
.modal-iframe { width:100%; flex:1; border:none; }

.modal-fallback { flex:1; display:flex; flex-direction:row; gap:2rem; padding:2.5rem; align-items:center; overflow:auto; }
.modal-fallback[hidden] { display:none; }
.modal-fallback__img { flex:1; max-width:60%; max-height:70vh; object-fit:cover; border-radius:14px; border:1px solid hsla(0,0%,100%,0.08); box-shadow:0 12px 40px rgba(0,0,0,0.5); }
.modal-fallback__body { flex:1; display:flex; flex-direction:column; gap:0.85rem; max-width:480px; }
.modal-fallback__title { font-size:1.75rem; font-weight:700; color:hsla(0,0%,100%,0.95); margin:0; }
.modal-fallback__desc { font-size:0.95rem; color:hsla(0,0%,100%,0.65); line-height:1.55; margin:0; }
.modal-fallback__cta { align-self:flex-start; padding:0.7rem 1.4rem; font-size:0.9rem; margin-top:0.5rem; display:inline-flex; align-items:center; }
.modal-fallback__note { font-size:0.75rem; color:hsla(0,0%,100%,0.4); margin:0; font-style:italic; }
@media (max-width:768px) { .modal-fallback { flex-direction:column; padding:1.5rem; gap:1.25rem; } .modal-fallback__img { max-width:100%; max-height:45vh; } }

@media (max-width:768px) {
    .projects-layout { flex-direction:column; }
    .projects-sidebar { flex:auto; flex-direction:row; overflow-x:auto; gap:0.5rem; }

    .projects-bento-shell { position:relative; }

    .projects-bento__arrow {
        display:flex; align-items:center; justify-content:center;
        position:absolute; top:50%; transform:translateY(-50%);
        width:44px; height:44px; z-index:30;
        background:hsla(0,0%,5%,0.78); backdrop-filter:blur(8px);
        border:1px solid hsla(0,0%,100%,0.15); border-radius:50%;
        color:hsla(0,0%,100%,0.85); cursor:pointer;
        transition:background 0.3s, color 0.3s;
    }
    .projects-bento__arrow:hover { background:hsla(0,0%,15%,0.9); color:#fff; }
    .projects-bento__arrow--prev { left:0.5rem; }
    .projects-bento__arrow--next { right:0.5rem; }
    .projects-bento__arrow svg { width:18px; height:18px; }

    .projects-bento {
        display:flex !important; flex-direction:row !important;
        overflow-x:auto; overflow-y:hidden;
        scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
        padding:1.5rem 10%; gap:0.75rem;
        perspective:1400px; min-height:auto;
    }
    .projects-bento::-webkit-scrollbar { display:none; }

    .projects-bento .projects-bento__card,
    .projects-bento .projects-bento__card.visible {
        display:flex !important;
        flex-direction:column;
        min-width:82%; max-width:82%; flex-shrink:0;
        scroll-snap-align:center; scroll-snap-stop:always;
        aspect-ratio:unset; min-height:auto;
        background: linear-gradient(160deg, rgba(18,14,28,0.96) 0%, rgba(10,7,20,0.96) 100%);
        opacity:0.7; transform:scale(0.86); filter:blur(3px) brightness(0.55);
        transition:filter 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.45s ease;
        transform-origin:center; backface-visibility:hidden;
        grid-area:auto !important;
        overflow:hidden;
    }
    .projects-bento .projects-bento__card--center,
    .projects-bento .projects-bento__card--center.visible {
        opacity:1; transform:scale(1); filter:none;
    }
    .projects-bento .projects-bento__card--center::after { opacity:1; }
    .projects-bento .projects-bento__card--center + .projects-bento__card,
    .projects-bento .projects-bento__card--center + .projects-bento__card.visible {
        transform:scale(0.86) rotateY(-22deg); transform-origin:left center;
    }
    .projects-bento .projects-bento__card:has(+ .projects-bento__card--center),
    .projects-bento .projects-bento__card.visible:has(+ .projects-bento__card--center) {
        transform:scale(0.86) rotateY(22deg); transform-origin:right center;
    }

    /* Layout movil: imagen ARRIBA + texto ABAJO (no overlay flotante) */
    .projects-bento .projects-bento__card .projects-bento__media {
        position:relative !important;
        inset:auto !important;
        width:100%; height:200px;
        flex-shrink:0;
        border-radius:16px 16px 0 0;
        overflow:hidden;
        z-index:auto;
    }
    .projects-bento .projects-bento__card .projects-bento__media img {
        width:100%; height:100%;
        object-fit:cover; object-position:center top;
    }

    .projects-bento .projects-bento__card .projects-bento__glass,
    .projects-bento .projects-bento__card .projects-bento__specular {
        display:none !important;
    }

    .projects-bento .projects-bento__card .projects-bento__overlay {
        position:relative !important;
        inset:auto !important;
        z-index:auto !important;
        opacity:1 !important;
        transform:none !important;
        background:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        padding:1.1rem 1.25rem 1.35rem !important;
        border-radius:0;
        overflow:visible;
        flex:1;
        justify-content:flex-start;
        gap:0.6rem;
    }

    .projects-bento .projects-bento__card .projects-bento__title {
        font-size:1.05rem;
        line-height:1.25;
    }
    .projects-bento .projects-bento__card .projects-bento__desc {
        font-size:0.82rem;
        color:hsla(0,0%,100%,0.65);
        line-height:1.5;
        max-width:none;
    }
    .projects-bento .projects-bento__card .project-tech-tags {
        margin-bottom:0.25rem;
    }
}

@media (min-width:769px) {
    .projects-bento-shell { display:contents; }
    .projects-bento__arrow { display:none; }
}

/* ---- EXPERIENCE ---- */
.experience-section {
    border-top: 1px solid var(--border);
}

.experience-about {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.experience-about p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.experience-about strong {
    color: var(--text);
    font-weight: 600;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.experience-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(129, 140, 248, 0.15);
    transition: all 0.3s;
}

.experience-tags span i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.experience-tags span:hover {
    background: rgba(129, 140, 248, 0.25);
    transform: translateY(-2px);
}

#booking > .section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3rem;
    padding-bottom: 1.25rem;
}

#booking > .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.6), rgba(167, 139, 250, 0.6));
    border-radius: 2px;
}

/* ---- BOOKING (original) ---- */
.booking-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid hsla(0, 0%, 100%, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 80% at 50% 50%, transparent 0, rgba(5, 4, 10, 0.3) 60%, rgba(5, 4, 10, 0.6) 80%, rgba(5, 4, 10, 0.85) 100%),
        linear-gradient(135deg, #0c0812, #120e1c 3%, #1c1428 6%, #261c34 10%, #342641 15%, #3e2e4b 22%, #3a3046 30%, #36323e 38%, #323437 46%, #30322e 55%, #343228 64%, #3a3024 72%, #413020 78%, #442e1c 83%, #372618 88%, #281c14 92%, #19120f 95%, #100c0c 97%, #0a080a);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 hsla(0, 0%, 100%, 0.03);
    backdrop-filter: blur(10px);
    background-size: 100% 100%, 200% 200%;
    animation: cardBreathe 8s ease-in-out infinite;
}

.booking-container::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle), transparent 75%, rgba(129, 140, 248, 0.3) 88%, rgba(167, 139, 250, 0.5) 92%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0;
    animation: borderRotate 6s linear infinite;
    transition: opacity 0.4s ease;
}

.booking-container:hover::after { opacity: 1; }

.booking-container h3 {
    font-size: 2rem;
    color: hsla(0, 0%, 100%, 0.85);
    margin-bottom: 1rem;
    font-weight: 700;
}

.booking-container > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.booking-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.booking-option {
    background: hsla(0, 0%, 100%, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid hsla(0, 0%, 100%, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.booking-option .btn { margin-top: auto; }

@media (max-width: 480px) {
    .booking-options { grid-template-columns: 1fr; }
}

.booking-option::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(ellipse 40% 30% at var(--specular-x) var(--specular-y), rgba(129, 140, 248, 0.1) 0, transparent 70%);
    animation: specularDrift 8s ease-in-out infinite;
}

.booking-option:hover {
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(129, 140, 248, 0.1);
}

.booking-option i {
    font-size: 2.5rem;
    color: rgba(129, 140, 248, 0.8);
    margin-bottom: 1rem;
}

.booking-option h4 {
    color: hsla(0, 0%, 100%, 0.85);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.booking-option:hover h4 {
    color: var(--accent);
}

.booking-option p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* ---- CONTACT (original) ---- */
#contacto > .section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3rem;
    padding-bottom: 1.25rem;
}
#contacto > .section-title::after {
    content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:80px; height:3px;
    background:linear-gradient(90deg,rgba(129,140,248,0.6),rgba(167,139,250,0.6)); border-radius:2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.75rem;
    border-radius: 16px;
    background: hsla(0, 0%, 100%, 0.03);
    border: 1px solid hsla(0, 0%, 100%, 0.06);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    color: hsla(0, 0%, 100%, 0.9);
    font-weight: 500;
    transition: all 0.3s;
}

.form-group:focus-within label {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    color: hsla(0, 0%, 100%, 0.9);
    background: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsla(0, 0%, 100%, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(129, 140, 248, 0.4);
    background: hsla(0, 0%, 100%, 0.06);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.12);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid hsla(0, 0%, 100%, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: hsla(0, 0%, 100%, 0.03);
}

.contact-item::before {
    content:''; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
    background:radial-gradient(ellipse 40% 30% at var(--specular-x) var(--specular-y),rgba(129,140,248,0.08) 0,transparent 70%);
    animation:specularDrift 8s ease-in-out infinite;
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: hsla(0, 0%, 100%, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.contact-item:hover h4 { color: var(--accent); }

a.contact-item--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.contact-item--link .icon i { color: #25d366; }
a.contact-item--link:hover { border-color: rgba(37, 211, 102, 0.3); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.1); }
a.contact-item--link:hover h4 { color: #25d366; }

.contact-item .icon {
    font-size: 1.8rem;
    color: rgba(129, 140, 248, 0.8);
}

.contact-item h4 {
    font-weight: 600;
    color: hsla(0, 0%, 100%, 0.85);
    transition: all 0.3s;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 0%, 100%, 0.03);
    border-radius: 50%;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    color: hsla(0, 0%, 100%, 0.7);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content:''; position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%;
    transform:translate(-50%,-50%); transition:width 0.4s,height 0.4s;
}

.social-links a:hover::before { width:100%; height:100%; }

.social-links a.instagram::before { background:linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888); }
.social-links a.facebook::before { background:#1877f2; }
.social-links a.youtube::before { background:#ff0000; }
.social-links a.linkedin::before { background:#0077b5; }
.social-links a.github::before { background:#333; }

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(129, 140, 248, 0.3);
}

.social-links a:hover i { color:white; position:relative; z-index:1; }

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

/* ---- FOOTER ---- */
/* ---- WHATSAPP WIDGET ---- */
/* ===== WHATSAPP WIDGET — dark glass aesthetic, matches Javier IA ===== */
.wa-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-widget--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.85);
}

.wa-fab {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c4e);
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 -6px 14px rgba(37, 211, 102, 0.25) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    z-index: 2;
}

.wa-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 14px 40px rgba(37, 211, 102, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.wa-fab:active {
    transform: translateY(-1px) scale(1);
}

.wa-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.55);
    animation: waPulse 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes waPulse {
    0%   { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(2);    opacity: 0; }
}

.wa-widget.open .wa-fab {
    transform: scale(0.94);
    box-shadow:
        0 4px 16px rgba(37, 211, 102, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.wa-form {
    position: absolute;
    bottom: calc(60px + 1rem);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 3rem);
    background: linear-gradient(160deg, rgba(15, 12, 22, 0.96) 0%, rgba(8, 6, 14, 0.96) 100%);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(74, 222, 128, 0.15) inset,
        0 0 60px rgba(37, 211, 102, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-form::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 65%,
        rgba(74, 222, 128, 0.5) 82%,
        rgba(37, 211, 102, 0.9) 92%,
        transparent 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    animation: borderRotate 6s linear infinite;
    z-index: 1;
}

.wa-widget.open .wa-form {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.06);
    background: none;
    color: #fff;
    position: relative;
    z-index: 2;
}

.wa-form-header__avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c4e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    isolation: isolate;
}

.wa-form-header__avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(74, 222, 128, 0.8), rgba(37, 211, 102, 0.4), rgba(74, 222, 128, 0.8));
    animation: javiAvatarSpin 8s linear infinite;
    filter: blur(2px);
    opacity: 0.85;
    z-index: -1;
}

.wa-form-header__heading {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.wa-form-header__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.wa-form-header__subtitle {
    font-size: 0.7rem;
    color: hsla(0, 0%, 100%, 0.5);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.wa-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: javiStatusBlink 2.4s ease-in-out infinite;
}

.wa-form-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    color: hsla(0, 0%, 100%, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s;
}

.wa-form-close:hover {
    background: hsla(0, 0%, 100%, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.wa-form-body {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wa-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wa-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: hsla(0, 0%, 100%, 0.55);
    letter-spacing: 0.02em;
}

.wa-field input,
.wa-field textarea {
    padding: 0.75rem 0.85rem;
    background: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    resize: none;
}

.wa-field input:focus,
.wa-field textarea:focus {
    border-color: rgba(37, 211, 102, 0.5);
    background: hsla(0, 0%, 100%, 0.06);
}

.wa-field input::placeholder,
.wa-field textarea::placeholder {
    color: hsla(0, 0%, 100%, 0.35);
}

.wa-select { position: relative; }

.wa-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    background: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.wa-select-trigger i {
    font-size: 0.7rem;
    color: hsla(0, 0%, 100%, 0.5);
    transition: transform 0.3s;
}

.wa-select.open .wa-select-trigger {
    border-color: rgba(37, 211, 102, 0.5);
    background: hsla(0, 0%, 100%, 0.06);
}

.wa-select.open .wa-select-trigger i {
    transform: rotate(180deg);
}

.wa-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: linear-gradient(160deg, rgba(20, 14, 35, 0.98) 0%, rgba(10, 7, 22, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: all 0.25s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.wa-select.open .wa-select-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wa-select-option {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    color: hsla(0, 0%, 100%, 0.7);
    cursor: pointer;
    transition: all 0.18s;
}

.wa-select-option:hover {
    background: rgba(37, 211, 102, 0.12);
    color: #fff;
}

.wa-select-option--active {
    color: rgba(74, 222, 128, 1);
    background: rgba(37, 211, 102, 0.08);
}

.wa-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, #25d366 0%, #1fb855 100%);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow:
        0 10px 28px rgba(37, 211, 102, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-send:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 36px rgba(37, 211, 102, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.wa-send:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .wa-widget {
        bottom: 1rem;
        right: 1rem;
    }
    .wa-form {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content small {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-left { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-right { order: -1; }
    .hero-photo { width: 220px; height: 220px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 4rem 1.25rem; }

    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg);
        z-index: 999;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .nav-links.active a {
        font-size: 1.4rem;
        color: var(--text);
    }

    .hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .hero-photo { width: 180px; height: 180px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .booking-options { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .skills-3d-container { height: 400px; }

    .skills-cube-wrapper,
    .cube-face {
        width: 280px;
        height: 280px;
    }

    .cube-face.front  { transform: translateZ(140px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(140px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(140px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(140px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(140px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(140px); }
}

/* ---- SOBRE MI ---- */
#sobre-mi { padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
#sobre-mi > .section-title { text-align: center; font-size: 2.75rem; margin-bottom: 0.5rem; padding-bottom: 1.25rem; position: relative; }
#sobre-mi > .section-title::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:80px; height:3px; background:linear-gradient(90deg,rgba(129,140,248,0.6),rgba(167,139,250,0.6)); border-radius:2px; }
.about__lead { text-align: center; color: hsla(0,0%,100%,0.55); font-size: 1.05rem; margin-bottom: 3rem; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about__card {
    padding: 2rem 1.75rem; border-radius: 18px;
    border: 1px solid hsla(0,0%,100%,0.07);
    background: linear-gradient(160deg, hsla(0,0%,100%,0.03), hsla(0,0%,100%,0.01));
    backdrop-filter: blur(8px);
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.about__card:hover { border-color: rgba(129,140,248,0.25); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(129,140,248,0.08); }
.about__card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.about__card p { font-size: 0.92rem; line-height: 1.65; color: hsla(0,0%,100%,0.7); }
.about__card strong { color: hsla(0,0%,100%,0.95); font-weight: 600; }

/* ---- FAQ ---- */
#faq { padding: 5rem 1.5rem; max-width: 880px; margin: 0 auto; }
#faq > .section-title { text-align: center; font-size: 2.75rem; margin-bottom: 0.5rem; padding-bottom: 1.25rem; position: relative; }
#faq > .section-title::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:80px; height:3px; background:linear-gradient(90deg,rgba(129,140,248,0.6),rgba(167,139,250,0.6)); border-radius:2px; }
.faq__lead { text-align: center; color: hsla(0,0%,100%,0.55); font-size: 1.05rem; margin-bottom: 3rem; }
.faq__list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item {
    border-radius: 14px; border: 1px solid hsla(0,0%,100%,0.07);
    background: hsla(0,0%,100%,0.02); overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}
.faq__item:hover { border-color: hsla(0,0%,100%,0.14); background: hsla(0,0%,100%,0.035); }
.faq__item[open] { border-color: rgba(129,140,248,0.3); background: rgba(129,140,248,0.04); }
.faq__item summary {
    list-style: none; cursor: pointer;
    padding: 1.15rem 1.4rem;
    font-size: 1rem; font-weight: 600; color: hsla(0,0%,100%,0.95);
    position: relative; padding-right: 3rem;
    transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 300; color: hsla(0,0%,100%,0.5);
    transition: transform 0.3s, color 0.3s;
}
.faq__item[open] summary::after { content: '−'; color: rgba(129,140,248,0.9); }
.faq__item p {
    padding: 0 1.4rem 1.3rem 1.4rem; margin: 0;
    font-size: 0.92rem; line-height: 1.65; color: hsla(0,0%,100%,0.65);
}

@media (max-width: 768px) {
    .about__grid { grid-template-columns: 1fr; }
    #sobre-mi > .section-title, #faq > .section-title { font-size: 2rem; }
    .faq__item summary { font-size: 0.92rem; padding: 1rem 1.2rem; padding-right: 2.6rem; }
    .faq__item p { padding: 0 1.2rem 1.1rem 1.2rem; font-size: 0.88rem; }
}

/* ---- TIENDA: SHOWCASE 360 ---- */
#tienda {
    padding: 6rem 1.5rem 7rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
#tienda > .section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    padding-bottom: 1.25rem;
    position: relative;
}
#tienda > .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgba(129,140,248,0.6), rgba(167,139,250,0.6));
    border-radius: 2px;
}
.store__lead {
    text-align: center;
    color: hsla(0,0%,100%,0.55);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
}

.store-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    perspective: 1800px;
    perspective-origin: center center;
    min-height: 620px;
    position: relative;
}

.store-arrow {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: hsla(0,0%,8%,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0,0%,100%,0.12);
    color: hsla(0,0%,100%,0.85);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 30;
}
.store-arrow:hover {
    background: hsla(0,0%,15%,0.9);
    border-color: rgba(129,140,248,0.4);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 32px rgba(129,140,248,0.2);
}
.store-arrow:active { transform: scale(0.96); }
.store-arrow svg { width: 22px; height: 22px; }

.store-stage {
    position: relative;
    flex: 1;
    max-width: 540px;
    height: 620px;
    transform-style: preserve-3d;
}

.store-product {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2.25rem 2rem 2rem;
    border: 1px solid hsla(0,0%,100%,0.08);
    background:
        radial-gradient(ellipse 110% 60% at 50% 0%, rgba(var(--product-accent),0.18) 0, rgba(var(--product-accent),0.05) 35%, transparent 70%),
        linear-gradient(160deg, rgba(15,12,22,0.95) 0%, rgba(8,6,14,0.95) 100%);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(var(--product-accent),0.15) inset,
        0 0 60px rgba(var(--product-accent),0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(-90deg) scale(0.7);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1),
                visibility 0.7s;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.store-product--active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0) scale(1);
    animation: storeIdleFloat 8s ease-in-out infinite;
}
.store-product--exit-left {
    opacity: 0;
    visibility: visible;
    transform: rotateY(90deg) scale(0.7);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.store-product--exit-right {
    opacity: 0;
    visibility: visible;
    transform: rotateY(-90deg) scale(0.7);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

@keyframes storeIdleFloat {
    0%, 100% { transform: rotateY(-2deg) rotateX(1deg) translateZ(0); }
    50% { transform: rotateY(2deg) rotateX(-1deg) translateZ(10px); }
}

.store-product__glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 60%,
        rgba(var(--product-accent), 0.5) 80%,
        rgba(var(--product-accent), 0.9) 90%,
        rgba(var(--product-accent), 0.5) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    animation: borderRotate 5s linear infinite;
    z-index: 1;
}

.store-product__shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg,
        transparent 0%,
        transparent 40%,
        hsla(0,0%,100%,0.06) 50%,
        transparent 60%,
        transparent 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    pointer-events: none;
    animation: shimmerSweep 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes shimmerSweep {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: -100% 0; }
}

.store-product__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.85rem;
}

.store-product__badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(var(--product-accent), 0.15);
    color: rgb(var(--product-accent));
    border: 1px solid rgba(var(--product-accent), 0.3);
    text-shadow: 0 0 12px rgba(var(--product-accent), 0.4);
}

.store-product__icon {
    font-size: 3rem;
    line-height: 1;
    margin: 0.25rem 0;
    filter: drop-shadow(0 4px 20px rgba(var(--product-accent), 0.4));
}

.store-product__name {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.store-product__desc {
    font-size: 0.92rem;
    color: hsla(0,0%,100%,0.65);
    line-height: 1.55;
}

.store-plans {
    display: flex;
    gap: 0.4rem;
    padding: 0.3rem;
    background: hsla(0,0%,100%,0.04);
    border-radius: 12px;
    border: 1px solid hsla(0,0%,100%,0.06);
}
.store-plan-btn {
    flex: 1;
    padding: 0.55rem 0.6rem;
    border: none;
    background: transparent;
    color: hsla(0,0%,100%,0.55);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.store-plan-btn:hover { color: hsla(0,0%,100%,0.9); background: hsla(0,0%,100%,0.04); }
.store-plan-btn--active {
    background: linear-gradient(135deg, rgba(var(--product-accent), 0.25), rgba(var(--product-accent), 0.12));
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--product-accent), 0.2), 0 0 0 1px rgba(var(--product-accent), 0.35) inset;
}

.store-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0.5rem 0 0.25rem;
}
.store-price__currency {
    font-size: 1.3rem;
    font-weight: 600;
    color: hsla(0,0%,100%,0.7);
    align-self: flex-start;
    margin-top: 0.5rem;
}
.store-price__amount {
    font-size: 3.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(var(--product-accent), 0.85) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.store-price__period {
    font-size: 0.95rem;
    color: hsla(0,0%,100%,0.5);
    font-weight: 500;
}

.store-features {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.store-features li {
    font-size: 0.85rem;
    color: hsla(0,0%,100%,0.7);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.45;
}
.store-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--product-accent), 0.18);
    color: rgb(var(--product-accent));
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
}

.store-cta {
    margin-top: auto;
    padding: 0.9rem 1.4rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgb(var(--product-accent)) 0%, rgba(var(--product-accent), 0.7) 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(var(--product-accent), 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
}
.store-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--product-accent), 0.5), 0 0 0 1px rgba(255,255,255,0.15) inset;
}
.store-cta:active { transform: translateY(0); }

.store-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
}
.store-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1px solid hsla(0,0%,100%,0.2);
    background: hsla(0,0%,100%,0.06);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.store-dot:hover { background: hsla(0,0%,100%,0.18); transform: scale(1.15); }
.store-dot.active {
    width: 32px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(129,140,248,0.9), rgba(167,139,250,0.9));
    border-color: rgba(129,140,248,0.5);
    box-shadow: 0 0 16px rgba(129,140,248,0.5);
}

@media (max-width: 768px) {
    #tienda { padding: 4rem 1rem 5rem; }
    #tienda > .section-title { font-size: 2rem; }
    .store-showcase { gap: 0.5rem; min-height: 600px; perspective: 1200px; }
    .store-arrow { width: 42px; height: 42px; }
    .store-arrow svg { width: 16px; height: 16px; }
    .store-stage { height: 600px; max-width: 100%; }
    .store-product { padding: 1.75rem 1.5rem; }
    .store-product__name { font-size: 1.35rem; }
    .store-product__icon { font-size: 2.5rem; }
    .store-price__amount { font-size: 2.5rem; }
    .store-features li { font-size: 0.8rem; }
}
