/* ============================================================
   ARC SMART LIVING — CSS REDESIGN
   ============================================================ */

:root {
    --primary: #00c6ff;
    --primary-glow: rgba(0, 198, 255, 0.25);
    --bg-dark: #080c14;
    --bg-mid: #0d1220;
    --card-bg: #111827;
    --card-border: #1e2535;
    --text: #f0f4ff;
    --text-muted: #8892a4;
    --plan-green: #22c55e;
    --plan-blue: #3b82f6;
    --plan-purple: #a855f7;
    --font-display: 'Segoe UI', sans-serif;
    --font-body: 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }

.section-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-shadow: 0 0 30px rgba(0, 198, 255, 0.3);
}
.logo span { color: var(--primary); }
.logo-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-left: 6px;
    opacity: 0.9;
}

.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
    background: var(--primary);
    color: #000;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}
.nav-links .nav-cta:hover { background: #33d1ff; color: #000; }

.site-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 24px 80px;
    overflow: hidden;
    background: var(--bg-dark);
}

.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0, 198, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.site-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1558002038-1055907df827?q=80&w=1600&auto=format&fit=crop') center/cover;
    opacity: 0.06;
    pointer-events: none;
}

.site-hero .header-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.25);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.site-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.site-hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.site-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #000;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary:hover { background: #33d1ff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,198,255,0.3); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    padding: 16px 28px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
    justify-content: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--card-border); }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.7); }
}

.beneficios {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-mid);
}

.beneficios h2 { max-width: 640px; margin: 0 auto 60px; }

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    text-align: left;
}

.beneficio-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}
.beneficio-item:hover {
    border-color: rgba(0, 198, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.beneficio-icon {
    width: 52px; height: 52px;
    background: rgba(0, 198, 255, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.beneficio-icon i { font-size: 1.4rem; color: var(--primary); }

.beneficio-item h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.beneficio-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.quienes-somos { padding: 100px 0; }

.flex-nosotros {
    display: flex;
    align-items: center;
    gap: 70px;
    text-align: left;
}

.nosotros-img {
    flex: 0.9;
    position: relative;
}
.nosotros-img img {
    width: 100%;
    border-radius: 20px;
    display: block;
}
.img-badge {
    position: absolute;
    bottom: -18px;
    left: 24px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nosotros-texto { flex: 1.1; }
.nosotros-texto p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.nosotros-texto strong { color: var(--text); }

.nosotros-values { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.value-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}
.value-pill i { color: var(--primary); font-size: 0.8rem; }

.planes {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-mid);
}

.cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 16px;
}

.plane-card {
    position: relative;
    background: var(--card-bg);
    width: 340px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    text-align: left;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.plane-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }

.destacado {
    border: 2px solid var(--plan-blue);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.2);
    background: #0f1829;
}
.destacado:hover { transform: translateY(-14px); }

.popular-tag {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--plan-blue);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.plan-header { padding: 32px 28px 20px; border-bottom: 1px solid var(--card-border); }
.plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan-tier {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}
.plan-header h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.tagline { color: var(--text-muted); font-size: 0.88rem; font-style: italic; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.green  { background: var(--plan-green);  box-shadow: 0 0 8px var(--plan-green); }
.blue   { background: var(--plan-blue);   box-shadow: 0 0 8px var(--plan-blue); }
.purple { background: var(--plan-purple); box-shadow: 0 0 8px var(--plan-purple); }

.plan-body { padding: 24px 28px 28px; flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }

.features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.features li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.features li i { color: var(--primary); font-size: 0.75rem; margin-top: 5px; flex-shrink: 0; }
.features li i.fa-plus { color: #f59e0b; }

.highlight {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
    border-left: 3px solid;
}
.green-highlight  { background: rgba(34, 197, 94, 0.08);  border-color: var(--plan-green);  color: #86efac; }
.blue-highlight   { background: rgba(59, 130, 246, 0.08); border-color: var(--plan-blue);   color: #93c5fd; }
.purple-highlight { background: rgba(168, 85, 247, 0.08); border-color: var(--plan-purple); color: #d8b4fe; }

.plan-btn {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}
.plan-btn-green  { background: rgba(34, 197, 94, 0.12);  color: var(--plan-green);  border: 1px solid rgba(34, 197, 94, 0.3); }
.plan-btn-blue   { background: var(--plan-blue); color: white; }
.plan-btn-purple { background: rgba(168, 85, 247, 0.12); color: var(--plan-purple); border: 1px solid rgba(168, 85, 247, 0.3); }

.plan-btn-green:hover  { background: var(--plan-green);  color: #000; }
.plan-btn-blue:hover   { background: #5b9bff; }
.plan-btn-purple:hover { background: var(--plan-purple); color: white; }

.contacto { padding: 100px 0; }

.contacto-inner {
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

.contacto-texto { flex: 1; }
.contacto-texto p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 32px; }

.contacto-info { display: flex; flex-direction: column; gap: 14px; }
.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.info-item i { color: var(--primary); width: 16px; }

.contacto-form { flex: 1; }

#leadForm, .form-success {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 36px;
    border-radius: 20px;
}

.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.input-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.input-wrap { position: relative; }
.input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    color: var(--text);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    outline: none;
    appearance: none;
}
.input-wrap input:focus,
.input-wrap select:focus { border-color: var(--primary); }
.input-wrap input.input-error,
.input-wrap select.input-error { border-color: #ef4444; }

.select-wrap::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.85rem;
}

.error-msg { color: #f87171; font-size: 0.78rem; display: none; }

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #000;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-top: 8px;
}
.btn-submit:hover { background: #33d1ff; transform: translateY(-1px); }
.btn-submit.loading { opacity: 0.7; pointer-events: none; }

.form-success { text-align: center; }
.form-success.hidden { display: none; }
.success-icon { font-size: 3rem; color: var(--plan-green); margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

footer {
    padding: 48px 0;
    background: #05070d;
    border-top: 1px solid var(--card-border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }

.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

.footer-copy { color: #444; font-size: 0.78rem; }

.video-demo {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    aspect-ratio: 16 / 9;
    z-index: 2;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.video-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-wrapper {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .navbar { padding: 16px 24px; }
    .nav-links { gap: 20px; }

    .flex-nosotros { flex-direction: column; gap: 50px; }
    .nosotros-img { width: 100%; }

    .contacto-inner { flex-direction: column; gap: 48px; }
    .contacto-texto { text-align: center; }
    .contacto-info { align-items: center; }

    .destacado { transform: none; }
    .destacado:hover { transform: translateY(-6px); }

    .hero-scroll { display: none; }
}

@media (max-width: 600px) {
    .site-hero { padding: 120px 20px 60px; }
    .site-hero h1 { font-size: 2.4rem; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
    .stat-divider { display: none; }
    .nav-links { display: none; }
    #leadForm, .form-success { padding: 24px; }
}

/* ============================================================
   DAPTA / SofiA WIDGET PROTECTION
   ============================================================ */
#chatbot header,
#chatbot .chat-header,
.dapta-chatbot header,
.dapta-chatbot .chat-header {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    position: relative !important;
    color: #1a1d29 !important;
}

#chatbot header::before,
#chatbot header::after,
.dapta-chatbot header::before,
.dapta-chatbot header::after {
    content: none !important;
    display: none !important;
}

#chatbot .header-content,
.dapta-chatbot .header-content {
    position: static !important;
    z-index: auto !important;
    max-width: none !important;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    color: #1a1d29 !important;
}

#chatbot,
.dapta-chatbot {
    color: #1a1d29;
}

#chatbot .chat-input,
#chatbot #chatbot-input,
.dapta-chatbot .chat-input {
    padding: 12px 16px !important;
    min-height: 44px !important;
}