/* Sagat Landing Page - Tema tecnológico */
:root {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --accent: #25d366;
    --accent-dim: #1da851;
    --accent-glow: rgba(37, 211, 102, 0.3);
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2937;
    --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #111827 50%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 10px;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-lg {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(37, 211, 102, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta .btn-google {
    background: #fff;
    color: #1f2937;
}

.hero-cta .btn-google:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.hero-cta .btn-google .fab {
    color: #4285f4;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.15);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* Demo - WhatsApp simulation */
.demo {
    background: linear-gradient(180deg, transparent 0%, rgba(37, 211, 102, 0.05) 50%, transparent 100%);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
}

.demo-phone {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 440px;
    background: var(--bg-card);
    border-radius: 28px;
    padding: 10px;
    border: 2px solid var(--border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.phone-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #075e54;
    border-radius: 18px 18px 0 0;
    color: #fff;
}

.phone-back {
    margin-right: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.phone-contact {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-avatar {
    width: 32px;
    height: 32px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.phone-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.phone-status {
    font-size: 0.7rem;
    opacity: 0.9;
}

.phone-chat {
    min-height: 320px;
    background: #0b141a;
    padding: 12px;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.chat-date {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 12px;
}

.msg {
    max-width: 90%;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.msg-lead {
    background: #1f2c34;
    color: #e9edef;
    margin-right: auto;
    border-top-left-radius: 2px;
}

.msg-agent {
    background: #005c4b;
    color: #e9edef;
    margin-left: auto;
    border-top-right-radius: 2px;
}

.msg-text {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.msg-time {
    font-size: 0.65rem;
    opacity: 0.7;
    text-align: right;
}

.msg-with-quote .msg-quote {
    display: block;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-left: 3px solid #ffc107;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 6px 6px 0;
}

.msg-quote-author {
    display: block;
    font-size: 0.65rem;
    color: #25d366;
    margin-bottom: 4px;
}

.msg-quote-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(233, 237, 239, 0.9);
}

.msg-with-quote .msg-text {
    margin-bottom: 4px;
}

.msg.typing {
    padding: 10px 14px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.demo-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.demo-step.active {
    opacity: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0a0e17;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

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

.demo-step.active p {
    color: var(--text);
}

.demo-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Scheduling section */
.scheduling {
    background: linear-gradient(180deg, transparent 0%, rgba(37, 211, 102, 0.05) 50%, transparent 100%);
}

.scheduling-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .scheduling-container {
        grid-template-columns: 1fr;
    }
}

.scheduling-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.scheduling-subtitle i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.scheduling-phone {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.scheduling-chat-inner {
    min-height: 320px;
    padding: 1rem;
}

.scheduling-chat-inner .msg {
    max-width: 90%;
}

/* Calendar mock */
.calendar-mock {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-month {
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-providers {
    display: flex;
    gap: 0.5rem;
}

.cal-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 211, 102, 0.15);
    color: var(--accent);
    border-radius: 6px;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cal-day {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cal-day-highlight {
    color: var(--accent);
    font-weight: 600;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cal-num {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 8px;
    color: var(--text-muted);
}

.cal-num-event {
    background: rgba(37, 211, 102, 0.2);
    color: var(--accent);
    font-weight: 600;
}

.calendar-event {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
}

.calendar-event.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0a0e17;
    border-radius: 10px;
    font-size: 1.1rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-details strong {
    color: var(--text);
}

.event-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-desc {
    font-size: 0.8rem !important;
}

/* CTA section */
.cta-section {
    padding: 4rem 2rem;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content .logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}

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