/**
 * PSYNOTES - Styles
 * Color Palette: Beige/Arena + Verde Salvia
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #8AA8B2;
    --primary-dark: #6B8F9A;
    --primary-light: #A8C5CE;
    --primary-pale: #D4E5EA;
    
    /* Secondary Colors - Beige/Arena */
    --secondary: #C9B99A;
    --secondary-dark: #B5A485;
    --secondary-light: #E5DBC7;
    
    /* Backgrounds */
    --bg-cream: #FDFBF7;
    --bg-warm: #FAF8F5;
    --bg-beige: #F5F1EB;
    --bg-dark: #2D3748;
    
    /* Text Colors */
    --text-dark: #1A202C;
    --text-body: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    
    /* Accent */
    --accent: #E8B4A0;
    --success: #68D391;
    --warning: #F6AD55;
    --error: #FC8181;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow: auto !important;
    scrollbar-width: none !important; /* Firefox */
    overflow-x: hidden !important;
    -ms-overflow-style: none !important; /* IE 10+ */
}

.elemento::-webkit-scrollbar {
  display: none;       
}
 
html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

/* ========================================
   Central Line Parallax - Apple Style Simple
   ======================================== */
.central-line-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100vh - 80px);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.central-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 168, 178, 0.4);
    border-radius: 2px;
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
    transition: none;
    box-shadow: 0 0 15px rgba(138, 168, 178, 0.8);
}

/* Círculo indicador que sigue el progreso */
.line-pointer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(138, 168, 178, 0.6);
    transition: none;
    z-index: 1000;
}
 
section {
    position: relative;
    z-index: 1;
}

/* Ajustar contenido para dejar espacio a la línea */
.section-content-left,
.section-content-right {
    position: relative;
}

/* Puntos de conexión a la línea central */
.line-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 15px rgba(138, 168, 178, 0.5);
}

.line-connector.active {
    background: var(--primary);
    animation: connectorPulse 1.5s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(138, 168, 178, 0.5); }
    50% { box-shadow: 0 0 25px rgba(138, 168, 178, 0.8), 0 0 40px rgba(138, 168, 178, 0.4); }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 100vw;
    display: grid;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Section visibility effects for central line parallax */
section {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
}

section.section-visible {
    opacity: 1;
}

section.section-centered {
    position: relative;
}

/* Espacio para la línea central - evitar superposición */
.container {
    position: relative;
}

.section-header {
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes particleMove {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-fade-in.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

.pulse-animation {
    animation: pulse 2s ease infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.client-only {
    height: 100%;
    display: grid;
    align-content: space-around;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(138, 168, 178, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 168, 178, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
}

.btn-ghost:hover {
    background: var(--bg-beige);
    color: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Header / Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    width: 100%;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    gap: 4rem;
    max-width: 100%;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.logo.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-icon {
    width: 40px;
    height: 48px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo-accent {
    color: var(--primary);
}

/* Full-screen logo overlay on page load */
.logo-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.logo-fullscreen.shrink {
    opacity: 0;
    transform: scale(0.1);
    top: 40px;
    left: 20px;
    width: 40px;
    height: 48px;
}

/* Nav Links - Centro */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Nav Actions - Derecha */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-beige);
    border: 1px solid var(--secondary-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--secondary-light);
}

.flag-icon {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.flag-icon-svg {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lang-toggle i {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-toggle.open i {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--secondary-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 150px;
    overflow: hidden;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-beige);
}

.lang-option.active {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 200px);
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
}

.parallax-section {
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 90%, rgba(138, 168, 178, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 10%, rgba(201, 185, 154, 0.12) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    max-width: 1024px;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Calendar Widget - Left */
.hero-calendar {
    perspective: 1000px;
}

.calendar-widget {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.calendar-header-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header-widget .calendar-month {
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-beige);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav:hover {
    background: var(--primary);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
}

.calendar-days .day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-days .day:hover {
    background: var(--bg-beige);
}

.calendar-days .day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-days .day.has-appointment {
    position: relative;
}

.calendar-days .day.has-appointment::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.calendar-days .day.other-month {
    color: var(--text-light);
}

.calendar-appointments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-beige);
}

.appointment-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.appointment-item:hover {
    background: var(--bg-beige);
}

.appointment-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    min-width: 50px;
}

.appointment-info {
    display: flex;
    flex-direction: column;
}

.appointment-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.appointment-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hero Text - Right */
.hero-text {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--secondary-light) 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--primary);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.hero-trust span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-calendar {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-text {
        order: 1;
        text-align: center;
        padding-right: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 4rem 0;
    background: white;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    gap: 1.5rem;
}

.stats-grid .stat-item:nth-child(1) { grid-column: 1; }
.stats-grid .stat-item:nth-child(2) { grid-column: 2; }
.stats-grid .stat-item:nth-child(3) { grid-column: 4; }
.stats-grid .stat-item:nth-child(4) { grid-column: 5; }

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-warm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-body);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid .stat-item:nth-child(1),
    .stats-grid .stat-item:nth-child(2),
    .stats-grid .stat-item:nth-child(3),
    .stats-grid .stat-item:nth-child(4) {
        grid-column: auto;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .feature-row .feature-card:nth-child(1),
    .feature-row .feature-card:nth-child(2) {
        grid-column: auto;
    }
    
    .timeline-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-cards .timeline-card:nth-child(odd),
    .timeline-cards .timeline-card:nth-child(even) {
        grid-column: auto;
    }
    
    .central-line-container {
        display: none; /* Ocultar línea en móvil */
    }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1001; /* Per sobre de la línia central */
}

.section-tag {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
}

#security-tag {
    position: relative;
    left: 28vw;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
    color: var(--text-dark);
    width: 30vw;
    margin-left: -85%;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-body);
    width: 30vw;
    margin-left: -85%;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--bg-warm);
}

.features-section .section-header h2 {
    position: relative;
    z-index: 10;
    color: var(--text-dark);
}

.features-grid-parallax {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 1.5rem;
}

.feature-row .feature-card:nth-child(1) { grid-column: 1; }
.feature-row .feature-card:nth-child(2) { grid-column: 3; }

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

/* Efecto especial para el card de agente personalizado */
.feature-card:has(h3[data-i18n="features.personalized.title"]) {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-8px) translateX(4px);
    }
    50% {
        transform: translateY(-4px) translateX(-4px);
    }
    75% {
        transform: translateY(-12px) translateX(2px);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.highlight {
    background: linear-gradient(135deg, var(--primary-pale) 0%, white 100%);
    border: 2px solid var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-body);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   How It Works - Timeline
   ======================================== */
.how-it-works {
    padding: 6rem 0;
    background: white;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-section {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    margin-bottom: 2rem;
    z-index: 2;
    width: 150px;
    margin: 0 auto 2rem;
}

.marker-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(138, 168, 178, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    margin-left: 85%;
}

.timeline-marker.active .marker-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.marker-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

.timeline-cards {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 1.5rem;
}

.timeline-cards .timeline-card:nth-child(odd) { grid-column: 1; }
.timeline-cards .timeline-card:nth-child(even) { grid-column: 3; }

.timeline-card {
    background: var(--bg-warm);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.timeline-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
    transform: translateX(5px);
}

.timeline-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.timeline-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-cards {
        grid-template-columns: 1fr;
        padding-left: 60px;
    }
    
    .marker-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ========================================
   Security Section
   ======================================== */
.security-section {
    padding: 6rem 0;
    background: var(--bg-beige);
}

.security-diagram-modern {
    max-width: 900px;
    margin: 0 auto;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 4rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.diagram-node {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.diagram-node:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.diagram-node.source .node-icon {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.diagram-node.secure .node-icon {
    background: #d4edda;
    color: #155724;
}

.diagram-node.anon .node-icon {
    background: #e2e3f3;
    color: #5a5c82;
}

.node-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.node-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 200px;
}

.node-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-beige);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.diagram-arrow {
    display: flex;
    align-items: center;
    width: 60px;
}

.arrow-line {
    height: 3px;
    flex: 1;
    background: var(--primary);
    position: relative;
}

.arrow-particles {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.arrow-particles span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleMove 2s ease-in-out infinite;
}

.arrow-particles span:nth-child(2) {
    animation-delay: 0.3s;
}

.arrow-particles span:nth-child(3) {
    animation-delay: 0.6s;
}

.diagram-split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-branch {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.branch-arrow {
    width: 40px;
}

.branch-arrow .arrow-line {
    height: 2px;
}

.security-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.security-features.full-width {
    max-width: 100%;
}

.security-feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.security-feature.main-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-pale) 0%, white 50%, var(--secondary-light) 100%);
    border: 2px solid var(--primary-light);
    text-align: left;
}

.security-feature.main-feature .feature-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-feature.main-feature .feature-icon-large i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0;
}

.security-feature.main-feature .feature-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.security-feature.main-feature .feature-content p {
    font-size: 1rem;
    max-width: 500px;
}

.security-feature.main-feature .eu-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    padding: 0;
}

.security-feature.main-feature .eu-badge .eu-stars {
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.3);
}

.security-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.security-feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.security-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.security-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Diagram Fork con animación de partículas */
.diagram-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0; 
}

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    flex-shrink: 0;
}

.diagram-node span {
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.diagram-arrow-h {
    flex-shrink: 0;
}

.diagram-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.diagram-node.secure,
.diagram-node.anon {
    min-width: 160px;
}

.node-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 168, 178, 0.1);
}

.node-icon.small {
    width: 50px;
    height: 50px;
}

.node-icon i {
    font-size: 1.5rem;
    color: #8AA8B2;
}

.node-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: rgba(138, 168, 178, 0.15);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

/* Partículas y animaciones */
.diagram-horizontal .particle {
    opacity: 0;
    animation: particleMoveRight 2s ease-in-out infinite;
}

.diagram-horizontal .particle-1 { animation-delay: 0s; }
.diagram-horizontal .particle-2 { animation-delay: 0.4s; }
.diagram-horizontal .particle-3 { animation-delay: 0.8s; }
.diagram-horizontal .particle-4 { animation-delay: 0.2s; }
.diagram-horizontal .particle-5 { animation-delay: 0.6s; }
.diagram-horizontal .particle-6 { animation-delay: 1s; }

@keyframes particleMoveRight {
    0% { opacity: 0; transform: translateX(-10px); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(10px); }
}

/* Responsive - mantiene horizontal pero ajusta tamaños */
@media (max-width: 768px) {
    .diagram-horizontal {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .diagram-node {
        min-width: 100px;
    }
    
    .diagram-node span {
        font-size: 0.8rem;
    }
    
    .diagram-arrow-h svg {
        width: 40px;
    }
    
    .node-icon {
        width: 50px;
        height: 50px;
    }
    
    .node-icon.small {
        width: 40px;
        height: 40px;
    }
    
    .node-icon i {
        font-size: 1.2rem;
    }
    
    .diagram-node.secure,
    .diagram-node.anon {
        min-width: 140px;
    }
    
    .node-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .diagram-horizontal {
        justify-content: flex-start;
    }
    
    .diagram-node span {
        font-size: 0.75rem;
        max-width: 90px;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Split Layout for Parallax - Security */
.security-split-layout {
    display: grid;
    grid-template-columns: 45% 10% 45%;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

.security-left,
.security-right {
    padding: 2rem;
}

.security-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.security-center-gap {
    /* Empty space for parallax line */
}

.section-header-left {
    text-align: left;
    margin: 0 0 2rem;
}

.section-header-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header-left p {
    max-width: 100%;
    margin: 0;
    color: var(--text-muted);
}

/* Horizontal Diagram */
.diagram-horizontal {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    width: 50vw;
    position: relative;
    left: -130px;
    top: 100px;
}

.diagram-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.diagram-arrow-h {
    display: flex;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
}

.diagram-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diagram-node.small {
    padding: 1rem 1.5rem;
    min-width: 160px;
}

.diagram-node.secure,
.diagram-node.anon {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
}

.diagram-node .node-badge {
    margin-top: 0.5rem;
}

.node-icon.small {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.node-icon.small i {
    font-size: 0.9rem;
}

.diagram-node.small .node-text h4 {
    font-size: 0.95rem;
}

.diagram-node.small .node-text p {
    font-size: 0.8rem;
}

/* Split Layout for Parallax - Pricing */
.pricing-split-layout {
    display: grid;
    grid-template-columns: 45% 10% 45%;
    gap: 2rem;
    width: 100vw;
    padding: 0 5%;
    margin: 0 auto;
    align-items: start;
}

.pricing-left {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.pricing-center-gap {
    /* Empty space for parallax line */
}

/* Mobile responsiveness for split layouts */
@media (max-width: 968px) {
    .security-split-layout,
    .pricing-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .security-center-gap,
    .pricing-center-gap {
        display: none;
    }
    
    .section-header-left {
        text-align: center;
    }
    
    .security-left,
    .security-right {
        padding: 1rem;
    }
    
    .diagram-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .diagram-arrow-h {
        transform: rotate(90deg);
        width: 30px;
        margin: 0.5rem 0;
    }
    
    .diagram-results {
        flex-direction: column;
    }
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-section {
    padding: 6rem 0;
    background: white;
}

.pricing-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--primary-pale) 0%, white 100%);
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
}

.pricing-price .currency {
    font-size: 1rem;
    color: var(--text-muted);
    vertical-align: top;
}

.pricing-price .amount {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-price .period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-price.variable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pricing-price.variable .base-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-price.variable .base-price .amount {
    font-size: 2.5rem;
}

.pricing-price.variable .plus {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.pricing-price.variable .per-consult {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.price-calculator {
    background: var(--bg-beige);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.price-calculator label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.calculator-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calculator-input span:first-child {
    font-size: 0.9rem;
    color: var(--text-body);
    min-width: 120px;
}

.calculator-input input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--primary-pale);
    border-radius: 4px;
    outline: none;
}

.calculator-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.calculator-input input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(138, 168, 178, 0.5);
}

.consult-value {
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.calculated-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-light);
}

.calculated-price span {
    color: var(--text-body);
}

.calculated-price strong {
    font-size: 1.5rem;
    color: var(--primary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pricing-grid-two {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-warm);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin: 0 20vw;
}

.about-story {
    position: relative;
    margin-right: 5vw;
    justify-content: center;
    display: grid;
    align-items: center;
}

.story-block {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.story-block::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 70px;
    bottom: -30px;
    width: 2px;
    background: var(--primary-pale);
}

.story-block:last-child::before {
    display: none;
}

.story-year {
    width: 90px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.story-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.story-text p {
    color: var(--text-body);
    font-size: 0.95rem;
}

.about-values h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.values-grid {
    display: grid;
    gap: 1.5rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    padding: 6rem 0;
    background: white;
}

.testimonials-carousel-wrapper {
    position: relative;
    width: 100%; 
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    margin-left: 25vw;
}

.testimonials-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: grab;
    user-select: none;
}

.testimonials-carousel:active {
    cursor: grabbing;
}

.testimonials-carousel .testimonial-card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 0;
}

.testimonials-carousel .testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.testimonials-carousel .testimonial-card.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.testimonial-card {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.carousel-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-beige) 0%, var(--bg-warm) 100%);
}

.contact-split-layout {
    display: grid;
    grid-template-columns: 45% 10% 45%;
    gap: 0;
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.contact-left,
.contact-right {
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 5%;
    padding-right: 2rem;
}

.contact-right {
    padding-left: 2rem;
    padding-right: 5%;
}

.contact-center-gap {
    /* Empty space for parallax line */
}

.contact-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-left > p {
    color: var(--text-body);
    margin-bottom: 1rem;
    margin: 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: var(--primary-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-method a,
.contact-method span {
    color: var(--text-body);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--bg-beige);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-warm);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 968px) {
    .contact-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-center-gap {
        display: none;
    }
    
    .contact-left,
    .contact-right {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .contact-left h2 {
        font-size: 1.8rem;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-flex;
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition-slow);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-body);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 50vw;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-beige);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-beige);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

/* ========================================
   Scrollbar Personalitzada
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-beige) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-beige);
}

/* ========================================
   Diagrama Seguretat Millorat
   ======================================== */
.diagram-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-connector svg {
    overflow: visible;
}

.connector-path {
    stroke-dasharray: 10, 5;
    animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -15;
    }
}

.diagram-branches {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    height: 120px;
}

.branch-connector {
    display: flex;
    align-items: center;
}

.branch-connector.top {
    align-self: flex-start;
}

.branch-connector.bottom {
    align-self: flex-end;
}

.diagram-endpoints {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ========================================
   Pricing Enterprise Style
   ======================================== */
.pricing-price.enterprise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pricing-price.enterprise .amount-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-price.enterprise .period-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-card.variable-plan {
    background: var(--bg-warm);
    border: 2px solid var(--secondary-light);
}

/* ========================================
   Feature Cards Expandable
   ======================================== */
.feature-card.expandable {
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-pale) 0%, white 100%);
    border: 2px solid var(--primary-light);
}

.feature-card.expandable:hover {
    border-color: var(--primary);
}

.feature-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
}

.feature-card.expandable.expanded .feature-expanded-content {
    max-height: 300px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--primary-light);
    margin-top: 1rem;
}

.feature-expanded-content ul {
    list-style: none;
}

.feature-expanded-content li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-body);
    font-size: 0.9rem;
}

.feature-expanded-content li i {
    color: var(--primary);
    font-size: 0.85rem;
}

#contactForm {
    width: 150%;
}

#contactForm button {
    width: 100%;
}

/* ========================================
   Funcionalitats Connector Central
   ======================================== */
.features-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--primary-light) 10%, var(--primary) 50%, var(--primary-light) 90%, transparent);
    transform: translateX(-50%);
    z-index: 0;
}

.features-section {
    position: relative;
}

.features-grid-parallax {
    position: relative;
    z-index: 1;
}

/* ========================================
   Animacions Hover Millorades
   ======================================== */
.stat-item,
.feature-card,
.timeline-card,
.security-feature,
.pricing-card,
.value-card,
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover,
.security-feature:hover,
.value-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(0.5deg);
}

.timeline-card:hover {
    transform: translateX(10px) scale(1.02);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(138, 168, 178, 0.3);
}

/* ========================================
   Stats Animation Replay
   ======================================== */
.stat-item.animate-reset .stat-number {
    animation: countPulse 0.5s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   Responsive Pricing Grid
   ======================================== */
@media (max-width: 1024px) {
    .pricing-grid-three {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .features-section::before {
        display: none;
    }
}

    /* ========================================
       Mobile Responsive - Parallax Left Layout
/* ========================================
   Mobile Responsive - Parallax Left Layout
   ======================================== */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    /* Parallax line to the left */
    .central-line-container {
        left: 16px;
        transform: translateX(0);
        width: 4px;
    }

    /* Global container spacing so content sits to the right */
    .container {
        max-width: 100%;
        display: block;
        padding: 0 16px 0 64px;
    }

    /* Hero layout */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .hero-calendar {
        order: 2;
        margin: 0;
    }

    .hero-text {
        order: 1;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Features & timeline */
    .feature-row {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        margin-left: 0;
    }

    .timeline-cards {
        grid-template-columns: 1fr;
    }

    .marker-icon {
        margin-left: 0;
        position: relative;
        left: -30px;
    }

    /* Split layouts stacked */
    .security-split-layout,
    .pricing-split-layout,
    .contact-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    .security-center-gap,
    .pricing-center-gap,
    .contact-center-gap {
        display: none !important;
    }

    .security-left,
    .security-right,
    .pricing-left,
    .pricing-right,
    .contact-left,
    .contact-right {
        padding: 1rem 0;
    }

    .pricing-left {
        flex-direction: column;
    }

    .diagram-horizontal {
        width: 100%;
        left: 0;
        top: 0;
        flex-direction: column;
        position: relative;
    }

    /* Testimonials */
    .testimonials-carousel-wrapper {
        margin-left: 0;
        align-items: stretch;
        max-width: 100%;
    }

    .testimonials-carousel {
        height: auto;
        min-height: 320px;
    }

    .testimonials-carousel .testimonial-card {
        position: relative;
        height: auto;
    }

    .carousel-controls {
        justify-content: space-between;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}