/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #82c0ab;
    --primary-dark: #6ba896;
    --primary-light: #9fd4bf;
    --dark-color: #5a6673;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Dark Mode Variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #f8f9fa;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --code-bg: #f8f9fa;
}

[data-theme="dark"] {
    --primary-color: #82c0ab;
    --primary-dark: #6ba896;
    --primary-light: #9fd4bf;
    --dark-color: #e2e8f0;
    --light-color: #1e293b;
    --white: #1e293b;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);

    /* Dark Mode Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #334155;
    --card-bg: #1e293b;
    --input-bg: #334155;
    --code-bg: #334155;
}

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--bg-tertiary);
}

/* Header y Navegación */
.header {
    background: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Menu hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

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

/* Hero Visual Animation */
.hero-visual {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Email Preview Animation */
.email-preview {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--light-color);
}

.email-preview-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.email-preview-header::after {
    content: 'inbox@promail.ar';
    margin-left: auto;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.email-preview-body {
    padding: 1.5rem;
}

.email-line {
    height: 14px;
    background: linear-gradient(90deg, var(--light-color) 0%, #e9ecef 100%);
    margin-bottom: 1rem;
    border-radius: 6px;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.email-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent 0%, rgba(130, 192, 171, 0.2) 50%, transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(400%);
    }
}

.email-line.short {
    width: 60%;
}

.email-line.medium {
    width: 80%;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Ventajas Section */
.ventajas {
    background: var(--white);
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ventaja-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.ventaja-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ventaja-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ventaja-icon svg {
    transition: transform 0.3s ease;
}

.ventaja-card:hover .ventaja-icon svg {
    transform: scale(1.1);
}

.ventaja-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.ventaja-card p {
    color: var(--text-light);
}

/* Threat Monitor */
.threat-monitor {
    background: linear-gradient(135deg, var(--dark-color) 0%, #4a5561 100%);
    color: var(--white);
}

.threat-monitor .section-title,
.threat-monitor .section-subtitle {
    color: var(--white);
}

.monitor-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.live-threats {
    margin-top: 2rem;
}

.live-threats h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.threats-list {
    max-height: 300px;
    overflow-y: auto;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

.threats-list::-webkit-scrollbar {
    width: 6px;
}

.threats-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.threats-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.threats-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

[data-theme="dark"] .threats-list {
    scrollbar-color: #475569 var(--bg-secondary);
}

[data-theme="dark"] .threats-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] .threats-list::-webkit-scrollbar-thumb {
    background: #475569;
}

[data-theme="dark"] .threats-list::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.threat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
    gap: 1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.threat-type {
    font-weight: 700;
    color: var(--primary-color);
}

.threat-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.threat-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.world-map {
    position: relative;
    height: 280px;
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.95) 0%, rgba(20, 25, 35, 0.98) 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-image: url('../images/world-map.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(130, 192, 171, 0.2);
}

.map-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse-animation 2s ease-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(130, 192, 171, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(130, 192, 171, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(130, 192, 171, 0);
    }
}

/* Precios Section */
.precios {
    background: var(--light-color);
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.precio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.precio-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--primary-color);
}

.precio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.precio-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.precio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.precio-header h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.precio-header p {
    color: var(--text-light);
}

.precio-amount {
    text-align: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.precio-features {
    list-style: none;
    margin-bottom: 2rem;
}

.precio-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
    color: var(--text-color);
}

.precio-features li:last-child {
    border-bottom: none;
}

.precio-card .btn {
    width: 100%;
    text-align: center;
}

/* Contacto Section */
.contacto {
    background: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.chat-button svg {
    color: var(--white);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    background: var(--light-color);
    align-self: flex-start;
}

.chat-message.user {
    background: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--light-color);
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-send:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Sentiment Radar Section */
.sentiment-radar {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

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

.sentiment-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.sentiment-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sentiment-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    transition: all 0.3s;
}

.sentiment-feature:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.sentiment-feature svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.sentiment-feature span {
    color: var(--text-color);
    font-size: 0.9375rem;
}

.sentiment-dashboard-preview {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary-color);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.preview-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.preview-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.sentiment-meters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sentiment-meter {
    display: grid;
    grid-template-columns: 140px 1fr 70px;
    align-items: center;
    gap: 1rem;
}

.meter-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
    white-space: nowrap;
}

.meter-bar {
    height: 24px;
    background: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.meter-fill.positive {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.meter-fill.neutral {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.meter-fill.negative {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.meter-value {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--dark-color);
    text-align: right;
}

.preview-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.preview-note svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.preview-note span {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Comparativa Section */
.comparativa {
    padding: 4rem 0;
    background: var(--white);
}

.comparativa-header {
    text-align: center;
    margin-bottom: 2rem;
}

.conversor-ars {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--light-color);
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.conversor-ars label {
    font-weight: 600;
    color: var(--text-color);
}

.conversor-ars input {
    width: 130px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
}

.conversor-ars input:focus {
    border-color: var(--primary-color);
}

.conversor-hint {
    font-size: 0.875rem;
    color: var(--text-light);
}

.tabla-comparativa-wrapper {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* Scrollbar horizontal para tabla comparativa (desktop) */
.tabla-comparativa-wrapper::-webkit-scrollbar {
    height: 8px;
}

.tabla-comparativa-wrapper::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.tabla-comparativa-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.tabla-comparativa-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Dark mode para scrollbar de tabla comparativa */
[data-theme="dark"] .tabla-comparativa-wrapper::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="dark"] .tabla-comparativa-wrapper::-webkit-scrollbar-thumb {
    background: #475569;
}

[data-theme="dark"] .tabla-comparativa-wrapper::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.tabla-comparativa {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.tabla-comparativa thead {
    background: var(--dark-color);
    color: var(--white);
}

.tabla-comparativa th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
}

.tabla-comparativa tbody tr:nth-child(odd) {
    background: var(--white);
}

.tabla-comparativa tbody tr:nth-child(even) {
    background: var(--light-color);
}

.tabla-comparativa td {
    padding: 14px 16px;
    vertical-align: top;
}

.tabla-comparativa td strong {
    color: var(--dark-color);
}

.tabla-comparativa small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.precios-lista {
    margin: 0;
    padding-left: 18px;
    list-style: none;
}

.precios-lista li {
    margin-bottom: 0.5rem;
}

.precios-lista li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.ars {
    color: var(--primary-color);
    font-weight: 600;
}

.comparativa-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 1rem;
}

.bullet-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 16px;
    transition: all 0.3s;
}

.bullet-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.bullet-card h3 {
    margin: 0 0 6px;
    font-size: 1.125rem;
    color: var(--dark-color);
}

.bullet-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.comparativa-disclaimer {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
}

.login-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    max-width: 900px;
    width: 100%;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .login-box {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.login-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.login-form {
    /* Sin margin-bottom - regla intencionalmente vacía para sobrescribir estilos anteriores */
    margin-bottom: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9375rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 8px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(130, 192, 171, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    user-select: none;
}

.checkbox-label:hover {
    background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-color);
    font-size: 0.9375rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #c33;
    font-size: 0.9375rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--primary-dark);
}

.login-info {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.login-info code {
    background: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {

    /* Contenedor general */
    .container {
        padding: 0 15px;
    }

    /* Navegación móvil */
    .nav {
        padding: 0.75rem 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        max-height: 500px;
    }

    .nav-menu li {
        padding: 0;
        border-bottom: 1px solid var(--light-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        margin-top: 70px;
        padding: 3rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .email-preview {
        max-width: 100%;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Ventajas grid */
    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ventaja-card {
        padding: 1.5rem;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .world-map {
        height: 200px;
    }

    /* Precios */
    .precios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .precio-card {
        padding: 2rem 1.5rem;
    }

    .precio-card.featured {
        transform: scale(1);
        border: 2px solid var(--primary-color);
    }

    .precio-card:hover,
    .precio-card.featured:hover {
        transform: translateY(-5px);
    }

    /* Sentiment Radar */
    .sentiment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sentiment-description {
        font-size: 1rem;
    }

    .sentiment-meter {
        grid-template-columns: 100px 1fr 60px;
        gap: 0.5rem;
    }

    .meter-label {
        font-size: 0.75rem;
    }

    .meter-bar {
        height: 20px;
    }

    .meter-value {
        font-size: 0.75rem;
    }

    /* Comparativa */
    .conversor-ars {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .conversor-ars input {
        width: 100%;
    }

    .tabla-comparativa-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Scrollbar horizontal para tabla comparativa */
    .tabla-comparativa-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .tabla-comparativa-wrapper::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 4px;
    }

    .tabla-comparativa-wrapper::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
        transition: background 0.3s ease;
    }

    .tabla-comparativa-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--text-light);
    }

    /* Dark mode para scrollbar de tabla comparativa */
    [data-theme="dark"] .tabla-comparativa-wrapper::-webkit-scrollbar-track {
        background: var(--bg-primary);
    }

    [data-theme="dark"] .tabla-comparativa-wrapper::-webkit-scrollbar-thumb {
        background: #475569;
    }

    [data-theme="dark"] .tabla-comparativa-wrapper::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

    .comparativa-bullets {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    /* Login */
    .login-box {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    /* Chat */
    .chat-window {
        width: 90vw;
        right: 5vw;
        height: 70vh;
        max-height: 500px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Sentiment Summary (sentiment-radar) */
    .sentiment-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sentiment-summary-value {
        font-size: 2rem;
    }

    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .sentiment-meter {
        grid-template-columns: 80px 1fr 50px;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .tabla-comparativa {
        font-size: 0.875rem;
    }

    .tabla-comparativa th,
    .tabla-comparativa td {
        padding: 10px 12px;
    }

    /* Sentiment Summary (sentiment-radar) */
    .sentiment-summary-value {
        font-size: 1.75rem;
    }

    .sentiment-summary-label {
        font-size: 0.6875rem;
    }

    /* CTA Section */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.9375rem;
    }

    .cta-section {
        padding: 3rem 0;
    }
}

/* Sentiment Summary Grid (para sentiment-radar.html) */
.sentiment-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sentiment-summary-card {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
}

.sentiment-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sentiment-summary-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.sentiment-positive .sentiment-summary-value {
    color: #10b981;
}

.sentiment-neutral .sentiment-summary-value {
    color: #f59e0b;
}

.sentiment-negative .sentiment-summary-value {
    color: #ef4444;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.cta-btn-white:hover {
    background: var(--light-color);
}

.cta-btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .hero-title {
        font-size: 3rem;
    }

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

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

    .precio-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .sentiment-summary-grid {
        gap: 0.5rem;
    }
}