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

:root {
    /* Cream/Warm theme */
    --bg-primary: #FAF8F5;
    --bg-secondary: #F5F0E8;
    --bg-card: #FFFFFF;
    --bg-hover: #F0EBE3;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #1A1A1A;
    --accent-warm: #C4A77D;
    --accent-gold: #D4AF37;
    --border: #E5E0D8;
    --border-light: #EDE8E0;
    --gradient-1: #1A1A1A;
    --gradient-2: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 60px rgba(196, 167, 125, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-warm);
    font-weight: 300;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-warm);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-gold));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-warm);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
}

.orb-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.orb-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(196, 167, 125, 0.2);
    animation: orbit 20s linear infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(196, 167, 125, 0.3);
    animation: orbit 15s linear infinite reverse;
}

.orb-3 {
    width: 100px;
    height: 100px;
    border-color: rgba(196, 167, 125, 0.4);
    animation: orbit 10s linear infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.center-icon {
    position: relative;
    z-index: 10;
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Features Section */
.features {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1rem auto 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(40px);
}

.feature-card:hover {
    background: var(--bg-card);
    border-color: var(--accent-warm);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--accent-warm);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-gold));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Agent Section */
.agent-section {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
}

.agent-widget-container {
    max-width: 500px;
    margin: 0 auto;
}

.agent-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.widget-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Agent Info */
.agent-info {
    margin-bottom: 2rem;
}

.agent-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 40px rgba(196, 167, 125, 0.3);
}

.avatar-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(196, 167, 125, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.agent-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.agent-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Widget Instructions */
.widget-instructions {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.widget-instructions p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.arrow-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent-warm);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, 5px); }
}

.hidden {
    display: none !important;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.start-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.25);
}

.end-btn {
    background: #FF4757;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.end-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.4);
}

/* Transcript Area */
.transcript-area {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.transcript-header {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.transcript-content {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.transcript-content::-webkit-scrollbar {
    width: 4px;
}

.transcript-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.transcript-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    animation: messageIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-left: 2rem;
}

.message.agent {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-gold));
    color: white;
    margin-right: 2rem;
}

/* Footer */
.footer {
    padding: 4rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 8rem 2rem 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .orb-container {
        width: 300px;
        height: 300px;
    }

    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 180px; height: 180px; }
    .orb-3 { width: 100px; height: 100px; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .features, .agent-section {
        padding: 4rem 1.5rem;
    }

    .agent-widget {
        padding: 2rem;
        border-radius: 24px;
    }

    .voice-visualizer {
        width: 220px;
        height: 220px;
    }

    .center-orb {
        width: 80px;
        height: 80px;
    }

    .footer {
        padding: 3rem 1.5rem;
    }
}

/* GSAP Animation Classes */
.split-text .char {
    display: inline-block;
}

/* Loading state */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ElevenLabs Widget Custom Styling
   ============================================ */

/* Widget flotante en esquina inferior derecha */
elevenlabs-convai {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

/* Ocultar branding - múltiples métodos */
elevenlabs-convai [class*="powered"],
elevenlabs-convai [class*="Powered"],
elevenlabs-convai [class*="branding"],
elevenlabs-convai [class*="Branding"],
elevenlabs-convai [class*="footer"],
elevenlabs-convai [class*="Footer"],
elevenlabs-convai a[href*="elevenlabs"],
elevenlabs-convai a[href*="ElevenLabs"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
