:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.4);
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.7);
    --text-muted: rgba(240, 240, 245, 0.4);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

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

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

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #74b9ff;
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: #a29bfe;
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

/* ============================================
   GLASS CARD SYSTEM
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.glass:hover {
    background: var(--glass-hover);
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.1);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-logo span {
    -webkit-text-fill-color: var(--text-primary);
    font-weight: 400;
    opacity: 0.6;
}

.nav-logo-img {
    width: 160px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-cta {
    background: var(--accent-gradient) !important;
    color: white !important;
    -webkit-text-fill-color: white;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

section {
    padding: 120px 0;
    position: relative;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.section-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.section-title .gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 8px;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title .line {
    display: block;
}

.hero-title .gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 30px var(--accent-glow);
}

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

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

.hero-stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Hero Right - 3D Glass Card */
.hero-right {
    position: relative;
    perspective: 1200px;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-card {
    width: 441px;
    height: 600px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(162, 155, 254, 0.08));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    transform: rotateY(-8deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(108, 92, 231, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-3d-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(108, 92, 231, 0.1), transparent, rgba(162, 155, 254, 0.08), transparent);
    animation: rotateGlow 8s linear infinite;
}

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

.hero-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 40px var(--accent-glow);
}

.hero-card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.hero-card-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 50%, transparent 100%);
    margin: -40px;
    padding: 0 40px 40px;
    padding-top: 160px;
}

.hero-card-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin-bottom: 4px;
}

.hero-card-title {
    color: var(--accent-secondary);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.hero-card-tag {
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.25);
    font-size: 0.78rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* Floating elements */
.floating-element {
    position: absolute;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.float-card {
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.float-1 {
    top: 10%;
    right: -20px;
    animation-delay: -1s;
}

.float-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: -3s;
}

.float-3 {
    top: 40%;
    left: -10px;
    animation-delay: -5s;
}

.float-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.float-value {
    color: #00d2d3;
    font-weight: 700;
    font-family: var(--font-primary);
}

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

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

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    background: var(--bg-secondary);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.05));
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder {
    font-size: 8rem;
    opacity: 0.2;
}

.about-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 24px 32px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    font-family: var(--font-primary);
    box-shadow: 0 20px 50px var(--accent-glow);
}

.about-experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-badge .label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.about-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-highlight-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#servicios {
    position: relative;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

a.service-card {
    cursor: pointer;
    display: block;
    color: inherit;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(162, 155, 254, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: 700;
}

.services-cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* ============================================
   CASES / PORTFOLIO SECTION
   ============================================ */
#casos {
    background: var(--bg-secondary);
    position: relative;
}

#casos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.cases-header {
    text-align: center;
    margin-bottom: 80px;
}

.cases-header .section-subtitle {
    margin: 0 auto;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.case-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.case-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.case-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.case-metrics {
    display: flex;
    gap: 24px;
}

.case-metric {
    text-align: left;
}

.case-metric-value {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: #00d2d3;
    line-height: 1;
}

.case-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   BLOG / INSIGHTS SECTION
   ============================================ */
#blog {
    position: relative;
}

.blog-header {
    text-align: center;
    margin-bottom: 80px;
}

.blog-header .section-subtitle {
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    cursor: pointer;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(116, 185, 255, 0.1));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.8));
}

.blog-card-body {
    padding: 28px;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

a.blog-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: relative;
    z-index: 0;
}

/* ── Blog Pagination ── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-num:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-primary);
}

.pagination-num.active {
    background: var(--accent-primary);
    color: #fff;
}

/* ── Blog Single Post ── */
.blog-single {
    padding: 180px 0 80px;
}

.blog-single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.blog-single-header {
    margin-bottom: 32px;
}

.blog-single-title {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 12px 0 16px;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-single-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prose styles for WP content */
.blog-single-body.prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-single-body.prose h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
}

.blog-single-body.prose h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.blog-single-body.prose p {
    margin-bottom: 20px;
}

.blog-single-body.prose ul,
.blog-single-body.prose ol {
    margin: 16px 0 24px 24px;
}

.blog-single-body.prose li {
    margin-bottom: 8px;
}

.blog-single-body.prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-single-body.prose a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.blog-single-body.prose blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.blog-single-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* ── Comments ── */
.comments-section {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.comment {
    padding: 24px;
    border-radius: var(--radius-sm);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.comment-body p {
    margin: 0;
}

.comments-empty,
.comments-closed {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-style: italic;
}

.comment-form {
    padding: 32px;
    border-radius: var(--radius);
    margin-top: 24px;
}

.comment-form-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment-form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ── Alerts ── */
.comment-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid;
}

.comment-alert-success {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
    color: #00b894;
}

.comment-alert-error {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* ── RGPD Checkbox ── */
.form-checkbox-group {
    margin-top: 8px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-checkbox-mark {
    display: inline-flex;
    flex-shrink: 0;
    min-width: 28px;
    width: 28px;
    height: 28px;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    transition: var(--transition);
    margin-top: 1px;
    position: relative;
}

.form-checkbox input:checked + .form-checkbox-mark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-checkbox input:checked + .form-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.form-checkbox input:focus-visible + .form-checkbox-mark {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-checkbox-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.form-checkbox-text a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-checkbox-text a:hover {
    color: var(--accent-primary);
}

.blog-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

/* ============================================
   REVIEWS / TESTIMONIALS SECTION
   ============================================ */
#reviews {
    background: var(--bg-secondary);
    position: relative;
}

#reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.reviews-header {
    text-align: center;
    margin-bottom: 80px;
}

.reviews-header .section-subtitle {
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    padding: 36px;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #f9ca24;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.review-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
#contacto {
    position: relative;
    padding: 160px 0;
}

.cta-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(162, 155, 254, 0.06));
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-trust-icon {
    color: #00d2d3;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
}

.contact-info h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-text {
    font-size: 0.95rem;
}

.contact-detail-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form {
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a29bfe' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: #12121a;
    color: #f0f0f5;
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
    transition: opacity 0.3s ease;
}

.form-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 160px;
    height: auto;
    display: block;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
}

.footer-legal a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-secondary);
}

.footer-legal-sep {
    color: var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-right {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .blog-single-sidebar {
        position: static;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .blog-single {
        padding: 140px 0 60px;
    }

    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .blog-single-title {
        font-size: 1.6rem;
    }

    .blog-single-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-single-sidebar {
        position: static;
    }

    .blog-pagination {
        flex-wrap: wrap;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-title {
        letter-spacing: -1.5px;
    }

    .cta-wrapper {
        padding: 50px 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .cta-trust {
        flex-direction: column;
        gap: 16px;
    }

    /* Add bottom padding for mobile nav bar */
    body {
        padding-bottom: 72px;
    }

    /* Hide cookie floating btn on mobile — accessible via footer link */
    .cookie-settings-btn {
        display: none;
    }

    /* Adjust cookie banner above mobile nav */
    .cookie-banner {
        padding-bottom: 80px;
    }

    /* Footer needs extra bottom margin */
    .footer {
        padding-bottom: 80px;
    }
}

/* ============================================
   MOBILE BOTTOM NAV BAR
   ============================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* mobile-nav is always visible — no .hidden state */

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 0;
    min-width: 56px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item span {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
}

.mobile-nav-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

/* Active state */
.mobile-nav-item.active {
    color: var(--accent-secondary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Hover / press */
.mobile-nav-item:active {
    transform: scale(0.92);
}

/* CTA item (Contacto) — accent glow */
.mobile-nav-cta .mobile-nav-icon {
    stroke-width: 2.2;
}

.mobile-nav-cta.active {
    color: var(--accent-primary);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    padding: 180px 0 80px;
    position: relative;
    text-align: center;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.page-header .section-badge {
    margin-bottom: 24px;
}

.page-header .page-title {
    font-family: var(--font-primary);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.page-header .page-title .gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs-inline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs-inline a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumbs-inline a:hover {
    color: var(--accent-secondary);
}

.breadcrumbs-inline .breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail {
    padding: 80px 0 120px;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.service-detail-content h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
}

.service-detail-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-detail-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.service-detail-content ul li {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.service-detail-content ul li::before {
    content: '\2192';
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.service-detail-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    padding: 32px;
    margin-bottom: 24px;
}

.sidebar-author-card {
    text-align: center;
}

.sidebar-author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(108, 92, 231, 0.4);
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sidebar-card .sidebar-links {
    list-style: none;
}

.sidebar-card .sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-card .sidebar-links a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-card .sidebar-links a:hover,
.sidebar-card .sidebar-links a.active {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.2);
    color: var(--accent-secondary);
}

/* ============================================
   RELATED CASES (on service pages)
   ============================================ */
.related-cases {
    padding: 80px 0 120px;
    background: var(--bg-secondary);
}

.related-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* ============================================
   NAV ACTIVE STATE
   ============================================ */
.nav-links a.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }

@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    padding: 40px 0 120px;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.legal-body h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.legal-body h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.legal-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-body ul {
    list-style: none;
    margin-bottom: 20px;
}

.legal-body ul li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.legal-body ul li::before {
    content: '\2022';
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.legal-body a {
    color: var(--accent-secondary);
    transition: var(--transition);
}

.legal-body a:hover {
    text-decoration: underline;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 16px 0 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.legal-table th,
.legal-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.legal-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.legal-table td {
    color: var(--text-secondary);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table a {
    color: var(--accent-secondary);
}

.cookie-table {
    overflow-x: auto;
    margin: 16px 0 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cookie-table th {
    background: rgba(108, 92, 231, 0.1);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.cookie-table td {
    padding: 10px 16px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

.cookie-table code {
    background: rgba(108, 92, 231, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0 20px 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s ease;
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
    border-radius: var(--radius-md);
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-banner-text strong {
    color: var(--text-primary);
}

.cookie-banner-text a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Cookie buttons */
.cookie-btn {
    padding: 10px 22px;
    border-radius: 100px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.cookie-btn-reject {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.cookie-btn-reject:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.cookie-btn-customize {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--accent-secondary);
}

.cookie-btn-customize:hover {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
}

/* ============================================
   COOKIE PREFERENCES MODAL
   ============================================ */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 10002;
    width: 90%;
    max-width: 620px;
    max-height: 85vh;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-modal.visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.cookie-modal-header h2 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.cookie-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cookie-modal-close:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Cookie categories */
.cookie-category {
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-category-info h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cookie-category-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
}

.cookie-always {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Toggle switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.cookie-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-switch input:checked + .cookie-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(20px);
    background: white;
}

.cookie-switch-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-details {
    margin-top: 12px;
}

.cookie-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.8rem;
}

.cookie-detail-row code {
    background: rgba(108, 92, 231, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.cookie-detail-row span {
    color: var(--text-muted);
}

/* Modal footer */
.cookie-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 32px 28px;
    border-top: 1px solid var(--glass-border);
    justify-content: flex-end;
}

/* ============================================
   COOKIE SETTINGS BUTTON (floating)
   ============================================ */
.cookie-settings-btn {
    position: fixed;
    bottom: 70px;
    left: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-settings-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE — Cookie system
   ============================================ */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   PRIVACY POLICY MODAL
   ============================================ */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10003;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.privacy-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.privacy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 10004;
    width: 92%;
    max-width: 680px;
    max-height: 85vh;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.privacy-modal.visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.privacy-modal-header h2 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.privacy-modal-close:hover {
    color: var(--text-primary);
}

.privacy-modal-body {
    overflow-y: auto;
    padding: 24px 32px;
    flex: 1;
    min-height: 0;
}

.privacy-modal-body .legal-body {
    padding: 0;
    max-width: none;
}

.privacy-modal-body .legal-body h2 {
    font-size: 1rem;
    margin-top: 24px;
}

.privacy-modal-body .legal-body h3 {
    font-size: 0.9rem;
}

.privacy-modal-body .legal-body p,
.privacy-modal-body .legal-body li {
    font-size: 0.85rem;
}

.privacy-modal-body .legal-table {
    font-size: 0.8rem;
}

.privacy-modal-footer {
    padding: 16px 32px 24px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .privacy-modal {
        width: 96%;
        max-height: 90vh;
    }

    .privacy-modal-header,
    .privacy-modal-body,
    .privacy-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================
   EXIT-INTENT POPUP
   ============================================ */
.exit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.exit-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9) translateY(20px);
    z-index: 10006;
    width: 92%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(108, 92, 231, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 48px 40px 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup.visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.exit-popup-close:hover {
    color: var(--text-primary);
}

.exit-popup-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.exit-popup-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.exit-popup-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
}

.exit-popup-benefits {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exit-popup-benefits li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.exit-popup-benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: 700;
}

.exit-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exit-popup-cta {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 14px 24px;
}

.exit-popup-wa {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    gap: 8px;
}

.exit-popup-trust {
    margin: 16px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .exit-popup {
        padding: 40px 24px 32px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.whatsapp-float:hover {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    transform: scale(1.08);
}

.whatsapp-float svg {
    width: 22px;
    height: 22px;
}

.whatsapp-float-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: wa-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 76px;
        right: 16px;
    }
}

/* ============================================
   STICKY CTA BAR
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.97), rgba(162, 155, 254, 0.95));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 12px 0;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sticky-cta-text {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
}

.sticky-cta-text strong {
    font-weight: 700;
}

.sticky-cta .btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    background: #fff;
    color: var(--accent-primary);
    border: none;
    font-weight: 700;
}

.sticky-cta .btn-sm:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 64px;
    }

    .sticky-cta-inner {
        gap: 10px;
    }

    .sticky-cta-text {
        font-size: 0.78rem;
        text-align: center;
    }
}
