:root {
    /* Color Palette derived from logo */
    --primary: #0fa8a8;
    --secondary: #8b5cf6;
    --accent: #064d5e;
    --teal-light: #e0f7f7;
    --purple-light: #f0ebff;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f4fbfb;
    --white: #ffffff;
    --bg-light: #f4fbfb;
    --bg-soft: #edf8f8;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-script: 'Great Vibes', cursive;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(15, 168, 168, 0.5);
    --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   FONDO GLOBAL — DEGRADADO SUAVE DEL LOGO
   ========================================== */
body {
    font-family: var(--font-main);
    background: linear-gradient(160deg,
            #dff5f5 0%,
            #f0fbfb 15%,
            #f8f4ff 45%,
            #f0fbfb 75%,
            #dff5f5 100%);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(15, 168, 168, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(139, 92, 246, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 55% 50%, rgba(15, 168, 168, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, rgba(15, 168, 168, 0.28), rgba(139, 92, 246, 0.18));
    z-index: -1;
    border-radius: 2px;
}

.highlight-text {
    color: var(--primary);
}

.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
}

.section-header.text-white h2,
.section-header.text-white p {
    color: var(--white);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto;
    border-radius: 2px;
}

.divider.bg-white {
    background: var(--white);
}

/* ==========================================
   CUSTOM CURSOR — VISIBLE EN TODO FONDO
   ========================================== */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 12px rgba(15, 168, 168, 0.9), 0 0 4px rgba(139, 92, 246, 0.5);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition-duration: 0.15s;
    transition-timing-function: ease-out;
    background: rgba(15, 168, 168, 0.06);
    box-shadow: inset 0 0 8px rgba(15, 168, 168, 0.15);
}

.cursor-hover .cursor-dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.95), 0 0 6px rgba(15, 168, 168, 0.6);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.cursor-hover .cursor-outline {
    width: 65px;
    height: 65px;
    border-color: var(--secondary);
    background: rgba(139, 92, 246, 0.08);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
    cursor: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 168, 168, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(15, 168, 168, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 168, 168, 0);
    }
}

.w-100 {
    width: 100%;
}

/* ==========================================
   NAVBAR — LOGO TIPOGRÁFICO (sin imagen)
   ========================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(235, 250, 250, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 4px 24px rgba(15, 168, 168, 0.13);
    border-bottom: 1px solid rgba(15, 168, 168, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo tipográfico */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-decoration: none;
}

.logo-publindy {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-publindy .pub {
    color: rgba(255, 255, 255, 0.95);
}

.logo-publindy .lindy {
    color: #7df3f3;
}

.glass-nav.scrolled .logo-publindy .pub {
    color: var(--darker);
}

.glass-nav.scrolled .logo-publindy .lindy {
    color: var(--primary);
}

.logo-serigrafia {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: rgba(210, 185, 255, 0.95);
    margin-top: -4px;
    letter-spacing: 1px;
}

.glass-nav.scrolled .logo-serigrafia {
    color: var(--secondary);
}

.logo-tagline {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.glass-nav.scrolled .logo-tagline {
    color: rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    transition: var(--transition);
    position: relative;
}

.glass-nav.scrolled .nav-links a:not(.btn) {
    color: var(--dark);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    cursor: none;
}

.glass-nav.scrolled .hamburger {
    color: var(--dark);
}

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg,
            #043d4d 0%,
            #076a6a 30%,
            #1a0d5c 65%,
            #0f172a 100%);
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    z-index: 2;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-1,
.slide-2,
.slide-3 {
    background: transparent;
}

.slide-1::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 168, 168, 0.22) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.slide-2::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, transparent 70%);
    bottom: -120px;
    left: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
    pointer-events: none;
}

.slide-3::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 168, 168, 0.18) 0%, rgba(139, 92, 246, 0.14) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes orbPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.slide-content {
    text-align: center;
    padding: 20px;
    max-width: 850px;
    position: relative;
    z-index: 5;
}

.slide-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.65);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--primary);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
#services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.service-card {
    height: 260px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.card-front {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 168, 168, 0.18);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    gap: 15px;
}

.card-front i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s;
}

.service-card:hover .card-front i {
    transform: scale(1.08);
}

.card-front h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

.card-back {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: rotateY(180deg);
    gap: 12px;
    box-shadow: var(--shadow-glow);
}

.card-back i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.card-back h3 {
    font-size: 1.15rem;
    color: var(--white);
}

.card-back p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.dark-bg {
    background: linear-gradient(135deg, var(--accent) 0%, #0a6a8a 45%, #1a0e5e 100%);
    position: relative;
    overflow: hidden;
}

.dark-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(15, 168, 168, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.stat-item {
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.5s;
}

.stat-item:hover::after {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 168, 168, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(15, 168, 168, 0.7));
}

.stat-item h3 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
#portfolio {
    background: transparent;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 22px;
    border: 1.5px solid rgba(15, 168, 168, 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.portfolio-item-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* ==========================================
   WORKFLOW / TIMELINE
   ========================================== */
.light-bg {
    background: transparent;
}

.workflow-section .container {
    position: relative;
    max-width: 900px;
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 30px;
    width: 4px;
    height: calc(100% - 100px);
    background: rgba(15, 168, 168, 0.15);
    z-index: 1;
    border-radius: 4px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: height 1.5s ease-out;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(15, 168, 168, 0.5);
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
}

.step-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(15, 168, 168, 0.2);
    transition: var(--transition);
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.12);
}

.step-content {
    background: rgba(255, 255, 255, 0.82);
    padding: 22px 30px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    transition: var(--transition);
    border: 1px solid rgba(15, 168, 168, 0.12);
    backdrop-filter: blur(8px);
}

.step:hover .step-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 168, 168, 0.28);
}

.step-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.15rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.contact-bg-anim {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(15, 168, 168, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.09) 0%, transparent 50%);
    animation: rotateBg 22s linear infinite;
    z-index: 0;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(15, 168, 168, 0.15);
    border-radius: 32px;
    padding: 55px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    color: var(--dark);
}

.contact-info h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--darker);
}

.contact-list {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.98rem;
}

.contact-list i {
    color: var(--primary);
    font-size: 1.15rem;
    width: 20px;
}

.contact-form h3 {
    color: var(--dark);
    margin-bottom: 25px;
    font-size: 1.35rem;
}

.input-group {
    margin-bottom: 18px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: rgba(240, 251, 251, 0.9);
    border: 1.5px solid rgba(15, 168, 168, 0.18);
    border-radius: 12px;
    color: var(--dark);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(15, 168, 168, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.32);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: linear-gradient(135deg, var(--darker), #042a3a);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
}

/* ==========================================
   ICON ANIMATION
   ========================================== */
.icon-animate {
    animation: iconBob 3s ease-in-out infinite;
}

@keyframes iconBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ==========================================
   GLASS PANEL
   ========================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 168, 168, 0.12);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 3.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(235, 250, 250, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.12);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn) {
        color: var(--dark);
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .slide-content h1 {
        font-size: 2.4rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .timeline-line {
        left: 28px;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.1rem;
    }

    .contact-wrapper {
        padding: 25px;
        gap: 30px;
    }
}

/* ==========================================
   PORTFOLIO MODAL
   ========================================== */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 15, 30, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.portfolio-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

.portfolio-modal-inner {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    width: min(90vw, 920px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-modal.is-open .portfolio-modal-inner {
    transform: translateY(0) scale(1);
}

.portfolio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(15, 168, 168, 0.15);
    flex-shrink: 0;
}

.portfolio-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.portfolio-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 168, 168, 0.1);
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.portfolio-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

/* Swiper inside modal */
.portfolio-swiper {
    width: 100%;
    flex: 1;
    min-height: 0;
}

.portfolio-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4fbfb;
}

.portfolio-swiper .swiper-slide img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    padding: 12px;
}

/* Placeholder slide (sin imagen aún) */
.portfolio-slide-placeholder {
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(15, 168, 168, 0.5);
    background: linear-gradient(135deg, #edf8f8, #f0ebff);
}

.portfolio-slide-placeholder i {
    font-size: 4rem;
    opacity: 0.4;
}

.portfolio-slide-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.55;
    text-align: center;
    padding: 0 20px;
}

.portfolio-swiper .swiper-button-next,
.portfolio-swiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    top: 50%;
}

.portfolio-swiper .swiper-button-next::after,
.portfolio-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 900;
}

.portfolio-swiper .swiper-pagination-bullet {
    background: rgba(15, 168, 168, 0.35);
}

.portfolio-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

.portfolio-modal-counter {
    text-align: center;
    padding: 10px 0 14px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 600;
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 576px) {
    .portfolio-swiper .swiper-slide img {
        height: 260px;
    }

    .portfolio-slide-placeholder {
        height: 260px;
    }

    .portfolio-modal-inner {
        border-radius: 16px;
    }
}