:root {
    /* Color Palette - Warm, approachable, yet premium */
    --primary: #E65C3D;         /* Warm rust/orange - friendly & energetic */
    --primary-hover: #D14A2D;
    --primary-light: #FFEDE8;
    --secondary: #1E293B;       /* Deep slate - professional & trustworthy */
    --secondary-light: #334155;
    --background: #FAFAFB;      /* Off-white background */
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows - Premium soft shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 40px -10px rgba(230, 92, 61, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

p, li {
    text-align: justify;
    text-justify: inter-word;
    font-size: 0.95rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.stat-box p, 
.cta-content p, 
.footer-bottom p, 
.form-success p {
    text-align: center;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.highlight-gradient {
    background: linear-gradient(135deg, var(--primary), #FF8A50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(230, 92, 61, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary) !important;
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: rgba(250, 250, 251, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--primary-light);
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #E8F0FE;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-local {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge-local i {
    color: var(--primary);
}

.hero-text h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

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

/* Glass Card Component */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: rotate(0deg) translateY(-10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.card-header strong {
    display: block;
    color: var(--secondary);
    font-size: 1.125rem;
}

.card-header span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.card-body {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--secondary-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-footer i {
    color: #ef4444;
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    background: var(--surface);
    position: relative;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-text p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 500;
}

.check-list i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.philosophy-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: var(--background);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box.accent {
    background: var(--primary-light);
    border-color: rgba(230, 92, 61, 0.2);
}

.stat-box.accent h3 {
    color: var(--primary);
}

.stat-box.dark {
    background: var(--secondary);
    grid-column: span 2;
    color: white;
}

.stat-box.dark h3 {
    color: white;
}

.stat-box.dark p {
    color: rgba(255, 255, 255, 0.8);
}

.stat-box h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-weight: 500;
    color: var(--text-muted);
}

/* Services */
.services {
    padding: 8rem 0;
    background: var(--background);
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

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

.service-card {
    background: var(--surface);
    padding: 4.5rem 2rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(230, 92, 61, 0.15);
    border-color: rgba(230, 92, 61, 0.3);
}

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

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), #FF8A50);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Service Tags for Niche Targeting */
.service-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.2px;
}

.tag-aesthetic {
    background: #FCE7F3;
    color: #BE185D;
}

.tag-food {
    background: #FEF3C7;
    color: #D97706;
}

.tag-tech {
    background: #DBEAFE;
    color: #1D4ED8;
}

.tag-store {
    background: #D1FAE5;
    color: #047857;
}

.tag-marketing {
    background: #EDE9FE;
    color: #6D28D9;
}

.tag-corporate {
    background: #FEE2E2;
    color: #B91C1C;
}

/* CTA Banner */
.cta-banner {
    padding: 6rem 0;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 92, 61, 0.2) 0%, transparent 70%);
}

.cta-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--surface);
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.method h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.method p {
    color: var(--text-muted);
    text-align: left;
}

/* Form Styles */
.glass-panel {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.glass-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-size: 0.9375rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--surface);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.hidden {
    display: none !important;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success i {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1.5rem;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: var(--surface);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 92, 61, 0.3);
}

.testimonial-rating {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--secondary-light);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.author-info strong {
    display: block;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .glass-card {
        transform: none;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu behavior handled via JS if needed */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-box.dark {
        grid-column: span 1;
    }
    .philosophy-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Páginas Legales (Política de Privacidad)
   ========================================================================== */

.legal-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, #FAFAFB 0%, #F1F5F9 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.legal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-hero h1 {
    font-size: 3rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.legal-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
}

.legal-container {
    padding: 4rem 0 8rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar legal navigation */
.legal-sidebar {
    position: sticky;
    top: 7rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
}

.legal-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-light);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.legal-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.legal-nav-link {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.legal-nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    padding-left: 1rem;
}

.legal-nav-link.active {
    color: white !important;
    background: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.legal-nav-link span.num {
    font-weight: 700;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Legal text content card */
.legal-content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
}

.legal-section {
    scroll-margin-top: 8rem;
    margin-bottom: 4rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section h2 i {
    color: var(--primary);
    font-size: 1.25rem;
}

.legal-section p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.legal-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal-section li {
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 0.95rem;
}

.legal-section strong {
    color: var(--secondary);
    font-weight: 600;
}

/* Modern Principles list for Section 1 */
.principles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.principle-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 92, 61, 0.3);
}

.principle-num {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.principle-text {
    font-size: 0.95rem;
    color: var(--secondary-light);
    line-height: 1.5;
    text-align: left !important;
}

/* Beautiful Accordions for Section 4 */
.accordion-wrapper {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item:hover {
    border-color: rgba(230, 92, 61, 0.3);
    box-shadow: var(--shadow-sm);
}

.accordion-item.active {
    border-color: rgba(230, 92, 61, 0.5);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--background);
}

.accordion-title-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
    background: var(--primary);
    color: white;
}

.accordion-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

.accordion-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
    border-top-color: var(--border);
    max-height: 1000px; /* Arbitrary large enough height */
}

.accordion-body {
    padding: 2rem 1.75rem;
}

/* Grid Layout for Processing Scenario details */
.scenario-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.scenario-details-grid.full-width {
    grid-template-columns: 1fr;
}

.detail-block {
    background: var(--background);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.detail-block.full {
    grid-column: span 2;
}

.detail-block h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-block h5 i {
    font-size: 0.9rem;
}

.detail-block p {
    font-size: 0.9rem;
    color: var(--secondary-light);
    line-height: 1.5;
    margin: 0;
    text-align: left !important;
}

.detail-block ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    list-style-type: square;
}

.detail-block li {
    font-size: 0.85rem;
    color: var(--secondary-light);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* Info Panel for Section 2 */
.info-panel {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 5px solid var(--primary);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-panel-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-hover);
    margin-bottom: 0.25rem;
}

.info-panel-item p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
    text-align: left !important;
}

/* Callout Box definition */
.legal-callout {
    background: rgba(230, 92, 61, 0.03);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.legal-callout p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--secondary-light);
    margin: 0;
    text-align: center !important;
}

/* Legal Tables responsive */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: left;
}

.legal-table th {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
    padding: 1.1rem 1.25rem;
}

.legal-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    background-color: var(--surface);
    vertical-align: top;
    line-height: 1.6;
}

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

.legal-table tr:nth-child(even) td {
    background-color: var(--background);
}

/* Rights Grid Component for Section 12 */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.right-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.right-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 92, 61, 0.3);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.right-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.right-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.right-card:hover .right-icon {
    background: var(--primary);
    color: white;
}

.right-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

.right-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: left !important;
}

/* Responsive adjustment for legal page */
@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .legal-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        width: 100%;
    }
    
    .legal-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .legal-nav-link {
        display: inline-flex;
    }
    
    .legal-content-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2.25rem;
    }
    
    .legal-content-card {
        padding: 1.75rem;
    }
    
    .principles-list {
        grid-template-columns: 1fr;
    }
    
    .scenario-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-block.full {
        grid-column: span 1;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .info-panel {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Página de Cookies & Configuración Interactiva
   ========================================================================== */

.highlight-nav {
    border-left: 2px solid var(--secondary) !important;
    font-weight: 600 !important;
    color: var(--secondary) !important;
    background-color: rgba(230, 92, 61, 0.04);
}

/* Guía de Navegadores */
.browser-guide-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.5rem 0;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.browser-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: #F8FAFC;
}

.browser-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.browser-tab:hover {
    color: var(--text);
    background-color: rgba(0,0,0,0.01);
}

.browser-tab.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
    background-color: #ffffff;
    font-weight: 600;
}

.browser-content-wrapper {
    padding: 2rem;
}

.browser-step-content {
    display: none;
}

.browser-step-content.active {
    display: block;
}

.browser-step-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.browser-step-content li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Panel de Configuración de Cookies */
.cookie-config-anchor {
    position: relative;
    top: -100px; /* Offset for sticky header */
}

.cookie-config-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cookie-config-header {
    padding: 2rem;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #ffffff;
    border-bottom: 1px solid var(--border);
}

.cookie-config-header h3 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    margin: 0 0 0.25rem 0 !important;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-config-header p {
    color: #94A3B8 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    text-align: left !important;
}

.cookie-options-list {
    padding: 0;
}

.cookie-option-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-option-item:hover {
    background-color: #F8FAFC;
}

.cookie-option-item.disabled-item {
    background-color: #FAFAFB;
    opacity: 0.95;
}

.cookie-option-item.disabled-item:hover {
    background-color: #FAFAFB;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.badge-required {
    background-color: #E2E8F0;
    color: #475569;
}

.badge-optional {
    background-color: rgba(230, 92, 61, 0.1);
    color: var(--secondary);
}

.cookie-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    text-align: justify;
}

.cookie-option-control {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Interruptor Deslizante (Switch Toggle) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider {
    background-color: var(--secondary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:disabled + .slider {
    background-color: #E2E8F0;
    opacity: 0.7;
    cursor: not-allowed;
}

input:disabled + .slider:before {
    background-color: #94A3B8;
}

.cookie-config-footer {
    padding: 1.5rem 2rem;
    background-color: #F8FAFC;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border);
}

.btn-cookie-action {
    min-width: 150px;
    font-size: 0.95rem;
}

/* Efectos de Foco Activo y Animación */
#btn-cookie-save {
    box-shadow: 0 4px 12px rgba(230, 92, 61, 0.2);
    border: 2px solid var(--secondary);
}

#btn-cookie-save:focus {
    outline: 3px solid rgba(230, 92, 61, 0.45);
    outline-offset: 1px;
}

#btn-cookie-cancel {
    border: 1px solid #CBD5E1;
}

#btn-cookie-cancel:hover {
    background-color: #F1F5F9;
    border-color: #94A3B8;
    color: var(--text);
}

@keyframes highlightGlow {
    0% {
        box-shadow: var(--shadow-md);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 25px rgba(230, 92, 61, 0.45);
        border-color: var(--secondary);
    }
    100% {
        box-shadow: var(--shadow-md);
        border-color: var(--border);
    }
}

.highlight-glow {
    animation: highlightGlow 2s ease-in-out;
}

/* Sistema de Notificaciones Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    max-width: 450px;
    animation: toastEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.4s, transform 0.4s;
}

@keyframes toastEnter {
    0% {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastExit {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
}

.toast-exit {
    animation: toastExit 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
    border-left-color: #10B981;
}

.toast-info {
    border-left-color: #3B82F6;
}

.toast-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10B981;
}

.toast-info .toast-icon {
    color: #3B82F6;
}

.toast-message {
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--text);
    flex: 1;
}

.toast-message strong {
    color: var(--text);
    font-weight: 600;
}

.toast-close {
    background: transparent;
    border: none;
    margin-left: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
    padding: 0.25rem;
}

.toast-close:hover {
    color: var(--text);
    transform: scale(1.1);
}

/* Responsividad para la página de cookies */
@media (max-width: 768px) {
    .cookie-option-item {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .cookie-option-control {
        align-self: flex-start;
    }
    
    .cookie-config-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
    }
    
    .btn-cookie-action {
        width: 100%;
        min-width: unset;
    }
    
    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: unset;
        width: 100%;
    }
}


