/* ========================================
   RAMÓN MESA - PRODUCTOR DE EVENTOS CDMX
   Paleta Neón: Magenta + Turquesa
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta Neón Profesional */
    --primary: #ff0070;
    --primary-dark: #cc005a;
    --primary-light: #ff3388;
    --secondary: #00d9db;
    --accent: #00ffff;
    
    --bg-dark: #000000;
    --bg-dark-2: #0d0d0d;
    --bg-dark-3: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    
    --font-display: 'Montserrat Alternates', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-magenta: 0 0 40px rgba(255, 0, 112, 0.5);
    --shadow-glow-cyan: 0 0 40px rgba(0, 217, 219, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --promo-height: 44px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    display: block;
}

/* Promo Header */
.promo-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--promo-height);
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(255, 0, 112, 0.4);
    overflow: hidden;
}

.promo-marquee {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Contener el desbordamiento en todos los dispositivos */
    max-width: 100vw;
}

/* Inner: no tiene ancho fijo — crece con su contenido en línea */
.promo-marquee-inner {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* La animación y will-change los aplica JS tras medir */
}

/* Cada track (original y clon) lado a lado */
.promo-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-item {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0 2rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.promo-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.5rem;
    flex-shrink: 0;
    padding: 0 0.25rem;
}


/* WhatsApp Float */
.whatsapp-float-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floatAnimation 3s ease-in-out infinite;
}

.whatsapp-bubble {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(37, 211, 102, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    max-width: 220px;
    position: relative;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(37, 211, 102, 0.95);
}

.bubble-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: var(--transition-base);
}

.whatsapp-float i {
    color: var(--text-primary);
    font-size: 1.75rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* Utilidades */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    max-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.9) 50%,
        rgba(0, 0, 0, 0.74) 100%
    );
    backdrop-filter: blur(2px) saturate(120%);
    -webkit-backdrop-filter: blur(2px) saturate(120%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-6);
    align-items: center;
    width: 100%;
}

.hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(
        circle,
        rgba(255, 0, 112, 0.4) 0%,
        rgba(0, 217, 219, 0.3) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.avatar-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    box-shadow: 
        0 0 60px rgba(255, 0, 112, 0.5),
        0 0 40px rgba(0, 217, 219, 0.3);
    z-index: 2;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-badge {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark-2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.badge-icon {
    font-size: .6rem;
}

.badge-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.hero-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 217, 219, 0.15);
    border: 1px solid rgba(0, 217, 219, 0.4);
    border-radius: 50px;
    margin-bottom: var(--space-3);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 217, 219, 0.2);
}

.tag-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--space-1);
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-family: var(--font-display);
}

.hero-description {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.7;
    max-width: 560px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.125rem;
    font-family: var(--font-display);
    filter: drop-shadow(0 0 8px rgba(255, 0, 112, 0.3));
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--glass-border);
}

.hero-cta-group {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 10px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 0, 112, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 32px rgba(255, 0, 112, 0.5),
        0 0 40px rgba(0, 217, 219, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    border-color: var(--secondary);
    background: rgba(0, 217, 219, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 217, 219, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* ========================================
   SERVICES SECTION CON CAROUSELS
   ======================================== */
.services-section {
    padding: var(--space-8) 0;
    background: var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse,
        rgba(255, 0, 112, 0.15) 0%,
        transparent 70%
    );
    filter: blur(80px);
    pointer-events: none;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse,
        rgba(0, 217, 219, 0.12) 0%,
        transparent 70%
    );
    filter: blur(80px);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.service-card {
    padding: var(--space-4);
    border-radius: 16px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card.featured {
    border: 2px solid rgba(255, 0, 112, 0.4);
    background: rgba(255, 0, 112, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 112, 0.05), rgba(0, 217, 219, 0.03));
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(255, 0, 112, 0.3),
        0 0 60px rgba(0, 217, 219, 0.2);
    border-color: rgba(255, 0, 112, 0.6);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    opacity: 0.25;
    line-height: 1;
}

/* SERVICE CAROUSEL */
.service-carousel {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-3);
    background: var(--bg-dark);
}

.service-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.service-carousel-prev,
.service-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-carousel-prev:hover,
.service-carousel-next:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 112, 0.5);
}

.service-carousel-prev {
    left: 0.75rem;
}

.service-carousel-next {
    right: 0.75rem;
}

.service-carousel-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 10;
}

.service-carousel-counter .current-slide {
    color: var(--primary);
}

.card-title {
    font-size: 2rem;
    margin-bottom: var(--space-2);
    font-weight: 800;
}

/* SCROLLABLE TEXT AREA */
.card-description-wrapper {
    position: relative;
    margin-bottom: var(--space-3);
}

.card-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-description.scrollable {
    max-height: 200px;
    overflow-y: scroll;
    padding-right: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.08);
}

.card-description.scrollable::-webkit-scrollbar {
    width: 4px;
}

.card-description.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.card-description.scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
    min-height: 24px;
}

.card-description.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.scroll-indicator-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(0deg, var(--bg-dark-2) 0%, transparent 100%);
    pointer-events: none;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 0, 112, 0.15);
    border: 1px solid rgba(255, 0, 112, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
}

.feature-tag i {
    font-size: 0.875rem;
}

/* ========================================
   PORTFOLIO SECTION CON POPUP
   ======================================== */
.portfolio-section {
    padding: var(--space-8) 0;
    background: var(--bg-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-3);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-badge {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-info {
    padding: var(--space-3);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.portfolio-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.portfolio-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-body);
    margin-top: 1.48rem;
}

.portfolio-more-btn:hover {
    background: rgba(255, 0, 112, 0.15);
    border-color: var(--primary);
    transform: translateX(4px);
}

.portfolio-more-btn i {
    transition: transform var(--transition-base);
}

.portfolio-more-btn:hover i {
    transform: translateX(4px);
}

/* PORTFOLIO MODAL POPUP */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.portfolio-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: var(--space-5);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 0, 112, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.portfolio-modal-close:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 112, 0.5);
}

.portfolio-modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.portfolio-modal-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 3rem;
}

.portfolio-modal-text-wrapper {
    position: relative;
}

.portfolio-modal-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.portfolio-modal-text.scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 112, 0.5) rgba(255, 255, 255, 0.1);
}

.portfolio-modal-text.scrollable::-webkit-scrollbar {
    width: 8px;
}

.portfolio-modal-text.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.portfolio-modal-text.scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.portfolio-modal-text.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   GALERÍA - LOGO + SLIDER DE IMÁGENES
   ======================================== */
.gallery-section {
    padding: var(--space-8) 0;
    background: var(--bg-dark-2);
    overflow: hidden;
}

/* Logo centrado */
.gallery-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.gallery-logo {
    max-height: 160px;
    width: auto;
    max-width: 560px;
    object-fit: contain;
    filter: ;
    opacity: 0.9;
}

.gallery-logo-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 1rem 0;
    text-transform: uppercase;
    text-align: center;
    animation: taglineBeat 2s ease-in-out infinite;
}

@keyframes taglineBeat {
    0%   { color: var(--text-muted); }
    10%  { color: var(--primary);    }
    20%  { color: var(--text-muted); }
    30%  { color: var(--primary);    }
    40%  { color: var(--text-muted); }
    55%  { color: var(--secondary);  }
    65%  { color: var(--text-muted); }
    80%  { color: var(--accent);     }
    90%  { color: var(--text-muted); }
    100% { color: var(--text-muted); }
}

.gallery-text {
    max-height: 200px;
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto var(--space-6);
    padding-right: 0.75rem;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255,255,255,0.08);
}

.gallery-text::-webkit-scrollbar {
    width: 4px;
}

.gallery-text::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.gallery-text::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.ix--tt {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slider wrapper */
.gallery-slider-container {
    position: relative;
    max-width: 100%;
}

.gallery-slider-viewport {
    overflow: hidden;
    border-radius: 16px;
    width: 100%;
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    /* ancho calculado por JS: total * 100% */
}

.gallery-slide {
    /* ancho calculado por JS: 100% / total */
    height: 620px;
    position: relative;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay sutil en las imágenes */
.gallery-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* Flechas de navegación */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 24px rgba(255, 0, 112, 0.5);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

/* Indicadores (círculos) */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: var(--space-4);
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 0, 112, 0.5);
}

/* Contador */
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 10;
}

.gallery-counter .gallery-current {
    color: var(--primary);
}



/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--space-8) 0;
    background: var(--bg-dark);
}

.contact-hub {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: 16px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card.whatsapp .contact-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-card.phone .contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.contact-card.email .contact-icon {
    background: linear-gradient(135deg, var(--secondary), #00a8aa);
}

.contact-card.instagram .contact-icon {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
}

.contact-card.facebook .contact-icon {
    background: linear-gradient(135deg, #0084FF, #00C6FF);
}

.contact-card.linkedin .contact-icon {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.contact-content {
    flex-grow: 1;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 0, 112, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.contact-card:hover .contact-arrow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateX(4px);
}

.contact-arrow i {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark-2);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-bottom i {
    color: var(--secondary);
    margin: 0 0.25rem;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: rgba(255, 0, 112, 0.3);
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 968px) {
    .hero {
        height: 100svh;
        min-height: 560px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .avatar-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }
    
    .hero-content-box {
        text-align: center;
    }
    
    .hero-tag {
        margin: 0 auto var(--space-2);
    }
    
    .hero-stats,
    .hero-cta-group {
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 640px) {
    :root {
        --space-2: 0.75rem;
        --space-3: 1rem;
        --space-4: 1.25rem;
        --space-5: 1.5rem;
        --space-6: 2rem;
        --space-8: 2.5rem;
        --space-12: 3rem;
    }

    /* CONTAINER más estrecho en mobile */
    .container {
        padding: 0 1rem;
    }

    /* HERO: exactamente 100svh, sin desbordamiento */
    .hero {
        height: 100svh;
        min-height: 560px;
        max-height: 100svh;
        padding: 0;
        align-items: center;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-top: 0;
    }

    /* Avatar: pequeño pero con presencia */
    .hero-image-col {
        padding-top: 0;
    }

    .avatar-wrapper {
        max-width: 182px;
        margin: 0 auto;
    }

    .avatar-frame {
        padding: 4px;
        box-shadow:
            0 0 30px rgba(255, 0, 112, 0.4),
            0 0 20px rgba(0, 217, 219, 0.2);
    }

    .avatar-glow {
        filter: blur(20px);
    }

    .avatar-badge {
        bottom: -0.75rem;
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .badge-icon {
        font-size: 0.875rem;
    }

    .badge-label {
        font-size: 0.75rem;
    }

    /* Hero texto compacto */
    .hero-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.625rem;
        margin: 0 auto 0.5rem;
        gap: 0.2rem;
        letter-spacing: 0.03em;
    }

    .tag-icon {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.25rem;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        color: var(--text-muted);
    }

    /* Stats más compactos */
    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        width: 100%;
        margin-bottom: 1rem;
    }

    .stat-item {
        flex: 1;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 0.625rem;
        line-height: 1.3;
    }

    .stat-divider {
        width: 1px;
        height: 28px;
        align-self: center;
    }

    /* CTAs en columna - .primary arriba por orden DOM */
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    /* SECCIONES: menos padding */
    .services-section,
    .portfolio-section,
    .gallery-section,
    .contact-section {
        padding: var(--space-8) 0;
    }

    .section-header {
        margin-bottom: var(--space-5);
    }

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

    .section-subtitle {
        font-size: 0.875rem;
    }

    /* TARJETAS DE SERVICIOS */
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .service-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .service-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .service-carousel {
        height: 180px;
        border-radius: 10px;
        margin-bottom: var(--space-2);
    }

    .card-title {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }

    .card-description.scrollable {
        max-height: 160px;
        font-size: 0.875rem;
    }

    .feature-tag {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }

    /* PORTFOLIO */
    .portfolio-item {
        border-radius: 12px;
    }

    .portfolio-image-wrapper {
        height: 220px;
    }

    .portfolio-info {
        padding: var(--space-2) var(--space-3);
    }

    .portfolio-title {
        font-size: 1.0625rem;
    }

    /* MODAL */
    .portfolio-modal {
        padding: 1rem;
    }

    .portfolio-modal-content {
        padding: 1.25rem;
        max-height: 88vh;
        border-radius: 16px;
    }

    .portfolio-modal-title {
        font-size: 1.375rem;
    }

    .portfolio-modal-text.scrollable {
        max-height: 280px;
        font-size: 0.9375rem;
    }

    /* TESTIMONIOS */
    .testimonial-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testimonials-carousel-viewport {
        padding: 0 2.5rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .testimonial-card {
        padding: 1.25rem;
        min-height: unset;
        border-radius: 14px;
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }

    /* CONTACTO */
    .contact-hub {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .contact-card {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .contact-icon i {
        font-size: 1.25rem;
    }

    .contact-title {
        font-size: 1rem;
    }

    /* FOOTER */
    .footer {
        padding: var(--space-4) 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .footer-brand h3 {
        font-size: 1.375rem;
    }

    .footer-links {
        justify-content: center;
        gap: var(--space-3);
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    /* WHATSAPP - bubble visible en mobile */
    .whatsapp-float-container {
        bottom: 1.25rem;
        right: 0.875rem;
        gap: 0.625rem;
    }

    .whatsapp-bubble {
        max-width: 150px;
        padding: 0.625rem 0.875rem;
    }

    .bubble-text {
        font-size: 0.6875rem;
        line-height: 1.4;
        white-space: normal;
    }

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

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    /* GALERÍA responsive */
    .gallery-slide {
        height: 480px;
    }

    .gallery-logo {
        max-height: 200px;
        max-width: 480px;
    }

    .gallery-logo-wrapper {
        margin-bottom: var(--space-5);
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .gallery-prev {
        left: 0.5rem;
    }

    .gallery-next {
        right: 0.5rem;
    }

    /* SCROLL INDICATOR oculto en mobile */
    .scroll-indicator {
        display: none;
    }
}
