:root {
    /* Corporate Palette Human Touch AI */
    --primary: #2563EB; 
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --secondary: #0F172A; 
    
    --bg-body: #F8FAFC; 
    --bg-surface: #FFFFFF;
    
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    
    --accent-green: #10B981;

    /* Theme Typography Default */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-medium);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-dark); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.nav-menu a, .btn, .badge, .price-step, .price-value, .toggle-btn, .lang-btn { font-family: var(--font-heading); }

/* Dynamic Views Logic */
body.is-empresas .view-pymes { display: none !important; }
body:not(.is-empresas) .view-empresas { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #1E293B; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3); }

/* Custom Fonts for Logo */
@font-face {
    font-family: 'Pattaya';
    src: url('../Fonts/Pattaya/Pattaya-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Audiowide';
    src: url('../Fonts/Audiowide/Audiowide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Zain';
    src: url('../Fonts/Zain/Zain-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 16px 0; transition: all 0.3s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-image { width: 44px; height: 44px; margin-right: 14px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px rgba(37,99,235,0.2); }
.logo-text-wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.logo-top-line { display: flex; align-items: baseline; line-height: 1; margin-bottom: 0; }
.ht-text { font-family: 'Pattaya', sans-serif; font-size: 1.6rem; font-weight: 400; color: var(--text-dark); }
.ai-text { font-family: 'Audiowide', cursive; font-size: 1.4rem; font-weight: 400; color: var(--primary); transform: translateY(0px); display: inline-block; margin-left: 8px; }
.services-text { font-family: 'Zain', sans-serif; font-size: 0.9rem; font-weight: normal; color: var(--text-medium); line-height: 1; letter-spacing: 0.05em; }

/* Main Nav Menu */
.nav-menu { display: flex; align-items: center; margin-left: auto; margin-right: 15px; }
.nav-menu a { position: relative; padding: 0 10px; color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.3s; white-space: nowrap; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: rgba(15, 23, 42, 0.15); /* Separador vertical muy sutil */
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Toggle Switcher (Compact version) */
.toggle-wrapper {
    display: flex; background: #E2E8F0; border-radius: 99px; padding: 2px; position: relative;
}
.toggle-btn {
    background: transparent; border: none; padding: 5px 12px; font-size: 0.75rem; font-weight: 700; color: var(--text-medium); cursor: pointer; border-radius: 99px; transition: all 0.3s; position: relative; z-index: 2; white-space: nowrap;
}
.toggle-btn.active { color: var(--text-dark); }
.toggle-bg {
    position: absolute; top: 2px; bottom: 2px; background: white; border-radius: 99px; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, var(--primary-light), var(--bg-body) 60%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -150px; right: -150px; width: 500px; height: 500px;
    background: var(--shadow-glow); border-radius: 50%; filter: blur(80px); z-index: 0;
}
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; position: relative; z-index: 10; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 300px; }
.hero-content h1 { font-size: 3.8rem; margin-bottom: 24px; color: var(--text-dark); line-height: 1.05; }
.hero-content h1 span { color: var(--primary); position: relative; }
.hero-content p { font-size: 1.25rem; color: var(--text-medium); margin-bottom: 40px; max-width: 500px; }

/* Demo Widget */
.hero-visual { flex: 1; min-width: 300px; position: relative; }
.premium-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.8); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,0.06); position: relative; z-index: 2; backdrop-filter: blur(10px); }
.demo-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.demo-avatar { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.demo-avatar.pymes { background: var(--primary-light); color: var(--primary); }
.demo-avatar.empresas { background: #F1F5F9; color: var(--text-dark); }
.demo-status-dot { display: inline-block; width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; animation: pulse 2s infinite; margin-right: 6px; }

.chat-bubble { padding: 16px 20px; border-radius: 18px; font-size: 0.95rem; margin-bottom: 16px; width: 85%; line-height: 1.5; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.chat-bot { background: #F8FAFC; border: 1px solid var(--border-color); color: var(--text-dark); border-bottom-left-radius: 4px; }
.chat-user { margin-left: auto; border-bottom-right-radius: 4px; }
.chat-user.pymes { background: var(--primary); color: white; }
.chat-user.empresas { background: var(--secondary); color: white; }

/* Sections */
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.text-gradient { background: linear-gradient(135deg, var(--primary), #8B5CF6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; padding-right: 0.05em; padding-bottom: 0.1em; }

/* Solutions Grid */
.solutions { padding: 100px 0; background: var(--bg-body); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.solution-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 40px; transition: all 0.4s ease; box-shadow: var(--shadow-sm); }
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #CBD5E1; }
.card-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 24px; transition: all 0.3s; }
.card-icon.pymes { background: var(--primary-light); color: var(--primary); }
.card-icon.empresas { background: #F1F5F9; color: var(--text-dark); }
.solution-card:hover .card-icon.pymes { background: var(--primary); color: white; }
.solution-card:hover .card-icon.empresas { background: var(--text-dark); color: white; }
.solution-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.solution-card p { font-size: 1rem; color: var(--text-medium); margin-bottom: 24px; line-height: 1.7; }
.feature-list { list-style: none; }
.feature-list li { font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-weight: 500; }
.feature-list i { color: var(--accent-green); font-size: 1.1rem; }

/* How It Works Flowchart Diagram */
.how-it-works { padding: 100px 0; background: white; border-top: 1px solid var(--border-color); }
.diagram-container { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center; margin-top: 60px; position: relative; }

.diagram-step { flex: 1; background: var(--bg-body); padding: 40px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); position: relative; z-index: 2; min-width: 260px; }
.icon-bubble { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 24px; }
.solid-primary { background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(37,99,235,0.3); }

.diagram-step h4 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-dark); }
.diagram-step p { font-size: 1rem; color: var(--text-medium); line-height: 1.6; }

.diagram-line { width: 60px; position: relative; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; opacity: 0.8; }
.horizontal-line::before { content: ''; position: absolute; left: -20px; right: -20px; top: 50%; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); transform: translateY(-50%); z-index: -1; }

.call-animated { animation: vibrate 2s infinite; background: white; padding: 10px; border-radius: 50%; }

.diagram-center { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; margin: 0 15px; }
.diagram-data-sources {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.diagram-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.icon-small { background: white; padding: 12px 18px; border-radius: 12px; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; position: relative; z-index: 3;}
.icon-small i { color: var(--primary); font-size: 1.2rem; }
.vertical-lines { height: 30px; width: 3px; background: linear-gradient(180deg, var(--primary), transparent); opacity: 0.5; margin-bottom: -15px; position: relative; z-index: 1;}

.core-agent { background: white; border: 3px solid var(--primary); border-radius: var(--radius-lg); padding: 40px 50px; position: relative; box-shadow: 0 25px 50px rgba(37,99,235,0.15); z-index: 2; }
.brain-glow { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; background: var(--primary); transform: translate(-50%, -50%); border-radius: 50%; filter: blur(50px); opacity: 0.25; z-index: 0; animation: pulse 3s infinite; }
.core-agent i { font-size: 4.5rem; color: var(--primary); position: relative; z-index: 1; margin-bottom: 20px; display: inline-block; }
.core-agent h4 { font-size: 1.8rem; position: relative; z-index: 1; margin-bottom: 12px; color: var(--text-dark); }
.core-agent .badge { position: relative; z-index: 1; margin: 0; font-size: 0.85rem;}

.result-dashboard { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; position: relative; }
.dashboard-icon { width: 70px; height: 70px; background: #E0E7FF; color: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; position: relative; z-index: 1; }
.target { background: #fee2e2; color: #ef4444; width: 50px; height: 50px; font-size: 1.5rem; position: absolute; bottom: -15px; right: 50px; border: 4px solid var(--bg-body); border-radius: 50%; z-index: 2; }

@keyframes vibrate { 0% { transform: rotate(0); } 10% { transform: rotate(15deg); } 20% { transform: rotate(-15deg); } 30% { transform: rotate(15deg); } 40% { transform: rotate(0); } 100% { transform: rotate(0); } }

/* About Section */
.about { padding: 100px 0; background: white; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 24px; color: var(--text-dark); line-height: 1.15; }
.about-content p { font-size: 1.15rem; color: var(--text-medium); line-height: 1.8; }
.about-image-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform 0.3s; }
.about-image-wrapper:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.about-img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Inversion / Pricing */
.pricing { padding: 100px 0; background: var(--bg-surface); }
.pricing-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.price-card { background: var(--bg-body); border-radius: var(--radius-lg); padding: 40px 24px; border: 1px solid var(--border-color); transition: all 0.4s ease; position: relative; display: flex; flex-direction: column; }
.price-card.popular { background: white; border: 2px solid var(--primary); box-shadow: 0 20px 40px rgba(37,99,235,0.08); transform: translateY(-10px); }
.price-step { align-self: flex-start; padding: 6px 14px; background: #E2E8F0; color: var(--text-medium); border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px; }
.price-step.featured { background: var(--primary-light); color: var(--primary); }
.price-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.price-value { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; line-height: 1; }
.price-card p { font-size: 0.9rem; color: var(--text-medium); line-height: 1.6; }

/* ROI Calculator */
.calculator { padding: 100px 0; background: white; position: relative; }
.calc-wrapper { background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-color); box-shadow: 0 40px 80px rgba(0,0,0,0.06); }
.calc-form { padding: 60px; }
.calc-result { padding: 60px; color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.calc-result.pymes { background: linear-gradient(135deg, var(--primary-hover), var(--primary)); }
.calc-result.empresas { background: linear-gradient(135deg, #1E293B, var(--secondary)); }

.input-group { margin-bottom: 30px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 12px; }
.input-group input[type="range"] { width: 100%; height: 8px; background: var(--border-color); border-radius: 4px; outline: none; -webkit-appearance: none; appearance: none; }
.input-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; transition: 0.2s; background: var(--primary); box-shadow: 0 0 10px rgba(37,99,235,0.4); }
.input-group input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; transition: 0.2s; background: var(--primary); border: none; box-shadow: 0 0 10px rgba(37,99,235,0.4); }
body.is-empresas .input-group input[type="range"]::-webkit-slider-thumb { background: var(--secondary); box-shadow: 0 0 10px rgba(15,23,42,0.4); }
body.is-empresas .input-group input[type="range"]::-moz-range-thumb { background: var(--secondary); box-shadow: 0 0 10px rgba(15,23,42,0.4); }
.input-group input[type="number"] { width: 100%; padding: 16px; border-radius: 12px; border: 2px solid var(--border-color); font-size: 1.1rem; color: var(--text-dark); transition: all 0.3s; font-weight: 600; outline: none; }
.input-group input[type="number"]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

/* Booking Section */
.booking { padding: 100px 0; background: var(--bg-body); border-top: 1px solid var(--border-color); }
.booking-container { max-width: 1000px; margin: 0 auto; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.booking-header { padding: 40px; text-align: center; border-bottom: 1px solid var(--border-color); }
.calendly-placeholder { padding: 80px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #F8FAFC; min-height: 480px; text-align: center; }
.calendly-icon { font-size: 3rem; color: var(--text-light); margin-bottom: 20px; }

/* Footer Profesional */
.footer { 
    background: var(--secondary); 
    color: var(--text-light); 
    padding: 100px 0 0; 
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 60px; 
    margin-bottom: 80px; 
}
.footer-col h4 { 
    color: white; 
    font-size: 1.1rem; 
    margin-bottom: 28px; 
    font-weight: 700; 
    position: relative;
    display: inline-block;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-logo { display: inline-flex; align-items: center; margin-bottom: 24px; text-decoration: none; text-align: left; }
.footer-logo-image { width: 44px; height: 44px; border-radius: 12px; margin-right: 14px; object-fit: cover; }
.footer-text-wrapper { display: flex; flex-direction: column; align-items: flex-start; }
.footer-text-wrapper .ht-text { color: white; line-height: 1.1; }
.footer-text-wrapper .ai-text { color: var(--primary-light); }
.footer-text-wrapper .services-text { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

.brand-col { max-width: 380px; text-align: left; }
.footer-mission { 
    margin: 0 0 24px; 
    font-size: 0.9rem; 
    line-height: 1.6; 
    color: #94A3B8; 
}

.trust-seals { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-top: 32px; 
    padding-top: 24px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}
.powered-by { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; color: #64748B; }
.seal-logo { height: 20px; opacity: 0.8; transition: opacity 0.3s; }
.seal-logo:hover { opacity: 1; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
    color: #94A3B8; 
    text-decoration: none; 
    font-size: 0.95rem; 
    transition: all 0.3s; 
}
.footer-links a:hover { color: white; padding-left: 5px; }

.footer-email { 
    display: block; 
    color: var(--primary-light); 
    font-weight: 600; 
    font-size: 1.1rem; 
    text-decoration: none; 
    margin-bottom: 24px; 
}
.social-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background: rgba(255,255,255,0.05); 
    padding: 10px 20px; 
    border-radius: 12px; 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.3s; 
}
.social-link:hover { background: #FF0000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,0,0,0.2); }

.footer-bottom { 
    padding: 30px 0; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.85rem; 
}
.cookie-pref-btn { 
    background: transparent; 
    border: none; 
    color: #64748B; 
    cursor: pointer; 
    font-size: 0.85rem; 
    text-decoration: underline; 
    transition: color 0.3s; 
}
.cookie-pref-btn:hover { color: white; }

/* Cookie Management System */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 40px);
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 !important; }
.cookie-text h5 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.cookie-text p { font-size: 0.9rem; color: #94A3B8; line-height: 1.5; }

.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-link { background: transparent; border: none; color: #94A3B8; font-size: 0.9rem; cursor: pointer; text-decoration: underline; margin-left: 10px; }

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal.show { display: flex; animation: fadeIn 0.3s forwards; }

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
.modal-content h3 { font-size: 1.8rem; margin-bottom: 30px; text-align: center; color: var(--text-dark); }

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.2rem;
    transition: all 0.3s;
}
.close-modal:hover { background: #E2E8F0; color: var(--text-dark); transform: rotate(90deg); }

.cookie-settings { margin-bottom: 30px; }

.setting-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.setting-item:last-child { border-bottom: none; }
.setting-info strong { display: block; font-size: 1rem; color: var(--text-dark); }
.setting-info p { font-size: 0.85rem; color: var(--text-medium); margin-top: 4px; }

.setting-item input[type="checkbox"] {
    width: 48px; height: 24px;
    appearance: none; -webkit-appearance: none;
    background: #E2E8F0;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}
.setting-item input[type="checkbox"]:checked { background: var(--primary); }
.setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: all 0.3s;
}
.setting-item input[type="checkbox"]:checked::before { left: 27px; }
.setting-item input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.7; }

.modal-actions { display: flex; justify-content: center; }

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

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .brand-col { grid-column: span 2; max-width: 100%; }
    .cookie-content { flex-direction: column; text-align: center; gap: 24px; }
    .cookie-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* Language Switcher */
.lang-switcher { position: relative; display: flex; align-items: center; margin-left: 8px; }
.lang-btn { background: white; border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: var(--text-dark); cursor: pointer; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: white; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid var(--border-color); width: 180px; display: flex; flex-direction: column; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s; z-index: 1000; }
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { padding: 8px 12px; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); border-radius: 8px; cursor: pointer; display: flex; align-items: center; transition: background 0.2s; }
.lang-option:hover:not(.disabled) { background: var(--bg-body); color: var(--primary); }
.lang-option.disabled { opacity: 0.4; cursor: not-allowed; font-size: 0.75rem; }

/* Utilities */
.badge { display: inline-block; padding: 6px 14px; background: var(--primary-light); color: var(--primary); border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.badge.empresas { background: #F1F5F9; color: var(--text-dark); }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

@media (max-width: 1000px) {
    .nav-menu { display: none; }
    .hero-container, .calc-wrapper, .about-grid, .pricing-timeline { flex-direction: column; grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .hero { padding-top: 130px; }
    
    .diagram-container { flex-direction: column; gap: 0px; }
    .horizontal-line { transform: rotate(90deg); margin: 40px 0; }
    .horizontal-line::before { left: -40px; right: -40px; }
    .diagram-data-sources { flex-direction: column; gap: 10px; }
}

/* Legal Pages Styling */
.legal-page { 
    background: white; 
    color: var(--text-dark); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    font-family: var(--font-body);
}
.legal-header { 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-sm);
}
.legal-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.back-home { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 0.9rem; 
    font-family: var(--font-heading);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back-home:hover { transform: translateX(-5px); }

.legal-content-container { 
    padding: 80px 0; 
    flex: 1; 
    max-width: 900px; 
    margin: 0 auto; 
    width: 100%;
}
.legal-content h1 { font-size: 2.5rem; margin-bottom: 40px; color: var(--text-dark); font-family: var(--font-heading); }
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 20px; color: var(--text-dark); font-family: var(--font-heading); font-weight: 600; }
.legal-content p { font-size: 1.05rem; line-height: 1.8; color: var(--text-medium); margin-bottom: 20px; }
.legal-content .owner-box { 
    background: var(--bg-body); 
    padding: 24px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    margin: 30px 0;
}

.footer-minimal { 
    padding: 40px 0; 
    border-top: 1px solid var(--border-color); 
    text-align: center; 
    font-size: 0.85rem; 
    color: var(--text-light); 
    background: var(--bg-body);
}

@media (max-width: 900px) {
    .legal-content-container { padding: 40px 24px; }
    .legal-content h1 { font-size: 2rem; }
}

