@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-bg: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-surface-alt: #FFFFFF;
    --color-text: #0B1020;
    --color-text-secondary: #4A5568;
    --color-text-muted: #7A869A;
    --color-border: rgba(15,23,42,0.12);
    --color-border-light: rgba(15,23,42,0.08);
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-accent: #22D3EE;
    --color-primary-light: rgba(79,70,229,0.10);
    --color-primary-glow: rgba(34,211,238,0.20);
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%);
    --gradient-btn: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 8px 32px rgba(15, 23, 42, 0.10);
    --shadow-glow: 0 2px 16px var(--color-primary-glow);
    --radius-sm: 999px;
    --radius-md: 999px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #FFFFFF;
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-primary);
    transition: color var(--transition);
}

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

/* Consistent paragraph color for all sections */
section p {
    color: var(--color-text-secondary);
}

/* Header Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: var(--shadow-sm);
}

.main-header .container {
    padding: 0.75rem 2rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.brand {
    font-size: 1.25rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand strong {
    font-weight: 700;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

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

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

/* Language Toggle Button */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
    white-space: nowrap;
}

.lang-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.btn {
    background: var(--gradient-btn);
    color: white;
    padding: 0.8rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-family);
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    filter: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    filter: none;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all var(--transition);
    font-family: var(--font-family);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

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

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.alert {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border-left-color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 3px solid var(--color-success);
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-left-color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid var(--color-error);
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left-color: var(--color-info);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid var(--color-info);
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left-color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 3px solid var(--color-warning);
}

.panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    margin-bottom: 2rem;
    transition: box-shadow var(--transition);
}

.panel:hover {
    box-shadow: var(--shadow-lg);
}

.panel h2 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.panel h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.header {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    z-index: 10;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-welcome h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.user-status {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--color-text-secondary);
}

.logout-btn {
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F0FDF4;
    color: #166534;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.file-upload {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    background: var(--color-surface-alt);
}

.file-upload:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-bg);
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.06) 0%, transparent 60%);
    z-index: 0;
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

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

.auth-header h1 {
    color: var(--color-text);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.auth-links p {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.hero {
    background: var(--gradient-hero);
    color: var(--color-text);
    padding: 3rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--color-text);
}

.hero h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.feature-card {
    background: var(--color-surface);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    filter: drop-shadow(0 0 12px rgba(79, 70, 229, 0.18)) drop-shadow(0 0 30px rgba(79, 70, 229, 0.10));
    
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    background: #4F46E5;
    border-color: #4F46E5;
    color: white;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transform: translateY(-4px);
    filter: none;
}

.btn-outline:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    filter: none;
}


.feature-card:hover::before {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
}

.feature-card:hover h3 {
    color: white;
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.feature-card h3 {
    color: var(--color-text);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.hidden {
    display: none !important;
}

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

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex {
    display: flex;
}

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-gap {
    gap: 1rem;
}

.legal-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.legal-container h1 {
    color: var(--color-text);
}

.legal-container h2 {
    color: var(--color-text);
    border-bottom-color: var(--color-border-light);
}

.legal-container p,
.legal-container li {
    color: var(--color-text-secondary);
}

.legal-container th {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.legal-container td {
    color: var(--color-text-secondary);
}

.legal-container th,
.legal-container td {
    border-color: var(--color-border-light);
}

.back-link {
    color: var(--color-primary) !important;
    font-weight: 500;
}

.back-link:hover {
    color: var(--color-primary-hover) !important;
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--color-border-light);
    }
    .nav-menu .lang-toggle {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1040;
    }
    .nav-overlay.active {
        display: block;
    }

    .nav-wrapper {
        flex-direction: row;
        gap: 0;
        text-align: left;
    }
    
    .brand {
        font-size: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-img {
        width: 98% !important;
        max-width: 100% !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 1.25rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .hero {
        padding: 1rem 1.5rem 3.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-grid {
        gap: 1rem;
    }

    .panel {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .legal-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-container::before {
        height: 40vh;
    }
    
    .auth-card {
        padding: 1.75rem;
        border-radius: var(--radius-xl);
    }
    
    .hero {
        padding: 3rem 1rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }
    
    .panel {
        padding: 1.5rem;
    }

    .btn-large {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }

    .flex-center.flex-gap {
        flex-direction: column;
        width: 100%;
    }

    .flex-center.flex-gap .btn {
        width: 100%;
    }
}

/* ========================================
   Logo Carousel - Carrusel Infinito de Logos
   ======================================== */
.logo-carousel-wrapper {
    width: 100%;
    margin: 3rem 0 0;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0;
}

/* Fade lateral suave usando gradiente linear */
.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF 0%, transparent 100%);
}

.logo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF 0%, transparent 100%);
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: scroll-horizontal 30s linear infinite;
}

/* Pausa al hacer hover sobre el carrusel */
.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    height: 56px !important;
    max-height: 56px !important;
    min-height: 56px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: scale-down !important;
    object-position: center !important;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Ajustes específicos para logos con proporciones diferentes */
.logo-item[src*="youtube"],
.logo-item[src*="Youtube"],
.logo-item[src*="Google_Maps"],
.logo-item[src*="Gemini"] {
    max-width: 120px !important;
}

/* Hover sobre logo individual */
.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Animación keyframes para scroll infinito */
@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-carousel-wrapper {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .logo-carousel-wrapper::before,
    .logo-carousel-wrapper::after {
        width: 40px;
    }
    
    .logo-track {
        gap: 2rem;
        animation-duration: 20s;
    }
    
    .logo-item {
        height: 36px !important;
        max-height: 36px !important;
        min-height: 36px !important;
    }
    
    /* En móvil, el carrusel no se detiene al tocar */
    .logo-carousel:hover .logo-track {
        animation-play-state: running;
    }
}
/* ========================================
   Dashboard Modal & Wizard & Reply Panel
   ======================================== */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--dash-border);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

/* Wizard Steps Indicator */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-number.active {
    background: #3b82f6;
    color: #fff;
}

.step-number.completed {
    background: #10b981;
    color: #fff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
}

.step-line.completed {
    background: #10b981;
}

/* Wizard Content */
.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.wizard-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* Copy Box */
.copy-box {
    background: #f3f4f6;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.copy-box code {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: #1f2937;
}

.copy-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #2563eb;
}

.copy-btn.copied {
    background: #10b981;
}

/* Instructions List */
.instructions-list {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--dash-border);
}

.instructions-list ol {
    margin: 0;
    padding-left: 1.25rem;
}

.instructions-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #374151;
}

.instructions-list li:last-child {
    margin-bottom: 0;
}

.instructions-list a {
    color: #3b82f6;
    text-decoration: none;
}

.instructions-list a:hover {
    text-decoration: underline;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 500;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box.warning {
    background: #fef3c7;
    border-color: #fde68a;
}

.info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #1e40af;
}

.info-box.warning p {
    color: #92400e;
}

/* Verify Status */
.verify-status {
    text-align: center;
    padding: 2rem;
}

.verify-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.verify-success {
    color: #10b981;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verify-error {
    color: #ef4444;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Reply Panel - Sidebar */
.reply-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.reply-panel-overlay.active { display: block; }
.reply-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--dash-border);
}
.reply-panel.active { right: 0; }
.reply-panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}
.reply-panel-header h3 { margin: 0; font-size: 1.1rem; color: #1f2937; }
.reply-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}
.reply-panel-close:hover { color: #1f2937; }
.reply-panel-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.original-review { background: #f8fafc; border-radius: 12px; padding: 1rem; margin-bottom: 1.25rem; }
.original-review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.original-review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1rem;
}
.original-review-info h4 { margin: 0; font-size: 0.95rem; color: #1f2937; }
.original-review-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #6b7280; }
.original-review-stars { color: #fbbf24; }
.original-review-text { color: #374151; line-height: 1.6; font-size: 0.95rem; }
.ai-response-section { margin-bottom: 1.25rem; }
.ai-response-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.ai-response-header h4 { margin: 0; font-size: 0.95rem; color: #1f2937; display: flex; align-items: center; gap: 0.5rem; }
.ai-badge { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.ai-response-box { background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 1rem; min-height: 100px; }
.ai-response-box .response-text { color: #374151; line-height: 1.6; white-space: pre-wrap; }
.ai-response-box .placeholder-text { color: #9ca3af; font-style: italic; }
.ai-loading { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: #6b7280; }
.ai-loading-spinner { width: 32px; height: 32px; border: 3px solid #e5e7eb; border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.response-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn-generate { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.btn-generate:hover { opacity: 0.9; }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; }
.response-textarea { width: 100%; min-height: 100px; padding: 0.875rem; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 0.95rem; resize: vertical; font-family: inherit; }
.response-textarea:focus { outline: none; border-color: #667eea; }
.char-counter { text-align: right; font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; }
.char-counter.warning { color: #f59e0b; }
.char-counter.error { color: #ef4444; }
.reply-panel-footer { padding: 1.25rem; border-top: 1px solid var(--dash-border); background: #f8fafc; display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-cancel { background: #f3f4f6; color: #4b5563; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.btn-cancel:hover { background: #e5e7eb; }
.btn-send { background: #10b981; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.btn-send:hover { background: #059669; }
.btn-send:disabled { background: #9ca3af; cursor: not-allowed; }
@media (max-width: 768px) { .reply-panel { width: 100%; right: -100%; } }


/* codigo para IA DEMO */

@media (max-width: 600px) {
    .steps-slider-section {
        padding-left: 0;
        padding-right: 0;
    }

    .steps-slider-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .steps-slider {
        max-width: 95vw;
        padding: 0 1.5rem;
    }

    .steps-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .steps-slider-arrow.prev {
        left: -4px;
    }

    .steps-slider-arrow.next {
        right: -4px;
    }

    .steps-slider-section h2 {
        font-size: 1.5rem;
    }
}

/* AI Demo */
.demo-star {
    color: #d1d5db;
    transition: color 0.15s ease;
}

.demo-star.active {
    color: #f59e0b;
}

.demo-star:hover {
    color: #f59e0b;
}

.tone-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.tone-btn.active {
    border-color: #4F46E5;
    background: #f0f4ff;
    color: #4F46E5;
    font-weight: 600;
}

.tone-btn:hover {
    border-color: #4F46E5;
}

#demoResponseText.typing-demo::after {
    content: '▊';
    animation: blink-cursor 0.5s step-end infinite;
    color: #4F46E5;
}

/* ===== Buttons glow ===== */
.btn-primary-glow {
    background: #4F46E5 !important;
    color: white !important;
    transition: all 0.3s ease;
}
.btn-primary-glow:hover {
    background: #4338CA !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6), 0 0 40px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}
.btn-outline:hover {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5), 0 0 35px rgba(79, 70, 229, 0.3) !important;
    transform: translateY(-2px);
}

/* ===== Steps Slider ===== */
.steps-slider-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}
.steps-slider-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.steps-slider-section .slider-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.steps-slider {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    user-select: none;
    padding: 0 2.5rem;
}
.steps-slider-viewport {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 24px rgba(79, 70, 229, 0.55),
                0 0 60px rgba(79, 70, 229, 0.35);
    background: #fff;
    border: 1px solid var(--color-border-light);
}
.steps-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.steps-slider-slide {
    min-width: 100%;
    flex: 0 0 100%;
}
.steps-slider-slide img {
    display: block;
    width: 100%;
    height: auto;
}
.steps-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text);
    z-index: 10;
    transition: all 0.2s ease;
}
.steps-slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    color: var(--color-primary);
}
.steps-slider-arrow.prev { left: -22px; }
.steps-slider-arrow.next { right: -22px; }
.steps-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.steps-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
}
.steps-slider-dot.active {
    background: var(--color-primary);
}
.steps-slider-section .container {
    position: relative;
}
.steps-slider-deco-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}
.steps-slider-deco-logo img {
    width: 100%;
    height: auto;
}
@media (max-width: 900px) {
    .steps-slider-deco-logo {
        display: none;
    }
}

/* ===== Typing cursor ===== */
#heroSubtitle.typing::after {
    content: '|';
    display: inline;
    animation: blink-cursor 0.6s step-end infinite;
    color: var(--color-primary);
    font-weight: 300;
}
@keyframes blink-cursor {
    50% { opacity: 0; }
}

/* ===== Process Section ===== */
.process-section {
    padding: 2.5rem 2rem;
    background: #fff;
}
.process-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}
.process-section .process-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 3.2rem;
}
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    gap: 1.5rem;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, #4F46E5 0%, #4F46E5 100%);
    z-index: 0;
}
.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.process-step-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #4F46E5;
    background: #fff;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    position: relative;
}
.process-step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4DD0E1;
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.process-step p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}
@media (max-width: 900px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .process-steps::before {
        display: none;
    }
    .process-step {
        max-width: 400px;
    }
}