/* ==========================================================================
   Smart Solutions - Stylesheet (Redesign)
   ========================================================================== */

/* 1. CSS VARIABLES & RESET */
:root {
    --bg-primary: #050608;
    --bg-secondary: #0d0e12;
    --bg-card: rgba(14, 17, 23, 0.75);
    --accent: #f58a07;
    --accent-blue: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #f58a07 0%, #ffaa00 100%);
    --accent-glow: rgba(245, 138, 7, 0.12);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* 2. TYPOGRAPHY & UTILITIES */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.section-header {
    margin-bottom: 60px;
}

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

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 12px;
}

.section-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 16px auto 0;
}

/* 3. BUTTONS & BADGES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 138, 7, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 138, 7, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 210, 133, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 210, 133, 0.2);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent);
}

/* 4. HEADER / NAVIGATION */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-glass {
    background: rgba(10, 13, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

#main-header.scrolled .header-container {
    padding: 12px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-accent {
    color: var(--accent);
}

/* Logo en imagen: alterna según el tema */
.logo {
    display: inline-flex;
    align-items: center;
}

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

.logo-light { display: none; }              /* modo oscuro (por defecto) */
.light-mode .logo-dark { display: none; }
.light-mode .logo-light { display: block; }

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* 5. HERO SECTION */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
}

.glow-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual / Dashboard Mockup */
.hero-visual {
    position: relative;
}

.mockup-frame {
    background-color: #121820;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background-color: #1a222f;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.mockup-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 12px;
    font-family: var(--font-heading);
}

.mockup-body {
    flex-grow: 1;
    display: flex;
    background-color: #0b0e14;
}

.dash-sidebar {
    width: 48px;
    background-color: #111621;
    border-right: 1px solid var(--border-color);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dash-side-item {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #1e293b;
}

.dash-side-item.active {
    background-color: var(--accent);
}

.dash-main {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-title-bar {
    width: 100px;
    height: 12px;
    background-color: #1e293b;
    border-radius: 6px;
}

.dash-profile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #1e293b;
}

.dash-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dash-card {
    background-color: #141b27;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-card-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dash-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.dash-card-graph {
    height: 4px;
    border-radius: 2px;
    background-color: #1e293b;
    position: relative;
    overflow: hidden;
}

.dash-card-graph::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 70%;
}

.progress-green::after { background-color: var(--accent); }
.progress-blue::after { background-color: var(--accent-blue); width: 45%; }

.dash-chart-placeholder {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background-color: #141b27;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    min-height: 100px;
}

.chart-bar {
    width: 24px;
    background-color: #1e293b;
    border-radius: 4px 4px 0 0;
    transition: var(--transition-smooth);
}

.chart-bar.bar-1 { height: 40px; background-color: var(--accent); }
.chart-bar.bar-2 { height: 60px; }
.chart-bar.bar-3 { height: 80px; background-color: var(--accent-blue); }
.chart-bar.bar-4 { height: 50px; }
.chart-bar.bar-5 { height: 90px; background-color: var(--accent); }

/* 6. ABOUT SECTION */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.lead-text {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.about-text-content p {
    margin-bottom: 20px;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.bullet-item {
    display: flex;
    gap: 12px;
}

.bullet-icon {
    color: var(--accent);
    font-weight: 700;
}

.about-image-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

.glow-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.about-card-info {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.about-card-info h3 {
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-card-info p {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* 7. SERVICES SECTION */
.services-section {
    padding: 100px 0;
    position: relative;
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-glow) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 210, 133, 0.4);
    box-shadow: 0 12px 30px rgba(0, 210, 133, 0.08);
}

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

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.service-card:hover .card-icon-wrapper {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.card-features li {
    font-size: 0.875rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-features li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.card-link:hover {
    text-shadow: 0 0 8px var(--accent);
}

/* Highlighted MetaBOT Card */
.service-card.highlight-card {
    border-color: rgba(0, 210, 133, 0.3);
    box-shadow: 0 8px 25px rgba(0, 210, 133, 0.05);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* 8. DEMO SECTION */
.demo-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.demo-chat-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.chat-phone-frame {
    width: 360px;
    height: 600px;
    border: 8px solid #1a222f;
    border-radius: 40px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    background-color: #0b0e14;
    position: relative;
}

.phone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #161e29;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
}

.chat-status-info h4 {
    font-size: 0.875rem;
}

.chat-status-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--accent);
}

.chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
}

.system-msg {
    align-self: center;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.received-msg {
    align-self: flex-start;
    background-color: #1e293b;
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.sent-msg {
    align-self: flex-end;
    background-color: var(--accent);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

/* Asegura que el texto dentro de las burbujas use el color de la burbuja
   y no el gris global de los párrafos */
.sent-msg p,
.received-msg p {
    color: inherit;
    margin: 0;
}

.message-time {
    display: block;
    font-size: 0.65rem;
    text-align: right;
    margin-top: 4px;
    opacity: 0.7;
}

.chat-input-area {
    padding: 16px;
    background-color: #161e29;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-reply-btn {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-reply-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.input-row {
    display: flex;
    gap: 8px;
}

#chat-input {
    flex-grow: 1;
    background-color: #0d121b;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
}

.send-btn {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
}

/* 9. CONTACT SECTION */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info-panel h2 {
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.contact-method-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.method-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(245, 138, 7, 0.12);
    border: 1px solid rgba(245, 138, 7, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.method-details h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.method-details a {
    color: var(--text-muted);
}

.method-details a:hover {
    color: var(--accent);
}

.contact-form-panel {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: #0d121b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 210, 133, 0.15);
}

/* 10. FOOTER */
#main-footer {
    background-color: #06090e;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

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

.brand-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 280px;
}

.copyright-text {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links-col h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

.footer-contact-info a {
    color: var(--text-main);
    font-weight: 500;
}

.footer-contact-info a:hover {
    color: var(--accent);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

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

/* 11. RESPONSIVENESS */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.15rem; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-bg-glows {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-content {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    #nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        z-index: 999;
        transition: var(--transition-smooth);
        padding: 40px 24px;
        border-top: 1px solid var(--border-color);
    }
    
    #nav-menu.open {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-links a {
        font-size: 1.25rem;
    }
    
    .header-actions .btn {
        display: none; /* Hide WhatsApp button in mobile header */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* 12. ANIMATIONS */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   13. THEME TOGGLE (botón claro / oscuro)
   ========================================================================== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* Por defecto (modo oscuro) se muestra la luna; en modo claro, el sol */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
.light-mode .theme-toggle .icon-sun { display: block; }
.light-mode .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   14. LIGHT MODE — sobrescribe variables y superficies oscuras fijas
   ========================================================================== */
.light-mode {
    --bg-primary: #f7f9fc;
    --bg-secondary: #eef2f7;
    --bg-card: rgba(255, 255, 255, 0.85);
    --accent-glow: rgba(245, 138, 7, 0.14);
    --border-color: rgba(15, 23, 42, 0.10);
    --text-main: #0f172a;
    --text-muted: #52627a;
}

/* Scrollbar */
.light-mode ::-webkit-scrollbar-track { background: var(--bg-secondary); }
.light-mode ::-webkit-scrollbar-thumb { background: #cbd5e1; }
.light-mode ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Header */
.light-mode .header-glass {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* Botones / superficies translúcidas basadas en blanco */
.light-mode .theme-toggle,
.light-mode .btn-outline:hover,
.light-mode .card-icon-wrapper,
.light-mode .quick-reply-btn,
.light-mode .system-msg {
    background: rgba(15, 23, 42, 0.05);
}

/* El texto de los botones de respuesta rápida es oscuro en reposo,
   y en hover vuelve a fondo naranja con texto blanco (legible) */
.light-mode .quick-reply-btn { color: var(--text-main); }
.light-mode .quick-reply-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Hero: título con degradado oscuro en vez de blanco */
.light-mode .hero-content h1 {
    background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.light-mode .glow { opacity: 0.10; }

/* Mockup dashboard del hero */
.light-mode .mockup-frame {
    background-color: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.light-mode .mockup-header { background-color: #f1f5f9; }
.light-mode .mockup-body { background-color: #f7f9fc; }
.light-mode .dash-sidebar { background-color: #eef2f7; }
.light-mode .dash-side-item,
.light-mode .dash-title-bar,
.light-mode .dash-profile,
.light-mode .dash-card-graph,
.light-mode .chart-bar { background-color: #d3dbe6; }
.light-mode .dash-card,
.light-mode .dash-chart-placeholder { background-color: #ffffff; }

/* Tarjetas con glass */
.light-mode .about-card-info { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10); }

/* Demo / chat */
.light-mode .chat-phone-frame {
    border-color: #d3dbe6;
    background-color: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.20);
}
.light-mode .chat-header,
.light-mode .chat-input-area { background-color: #f1f5f9; }
.light-mode .received-msg { background-color: #e5eaf1; color: var(--text-main); }
.light-mode #chat-input,
.light-mode .form-group input,
.light-mode .form-group select,
.light-mode .form-group textarea { background-color: #ffffff; }

/* Footer */
.light-mode #main-footer { background-color: #eef2f7; }

/* El texto de la burbuja enviada permanece blanco sobre naranja (ya definido) */
