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

:root {
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --primary-color: #2f81f7;
    --primary-hover: #1f6feb;
    --secondary-color: #8957e5;
    --accent-color: #238636;
    --border-color: #30363d;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(47, 129, 247, 0.3);
}

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

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

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(47, 129, 247, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 129, 247, 0.5);
    color: white;
}

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

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.logo img {
    height: 1.2em;
    width: auto;
}

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

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 129, 247, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: -1;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-content h1 {
    text-align: left;
}

.hero-content p {
    text-align: left;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    margin-top: 1.5rem !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Hero Visual Mockup */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.glow-sphere {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(137, 87, 229, 0.4) 0%, rgba(47, 129, 247, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    animation: pulse-glow 6s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.widget-mockup {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.widget-mockup-header {
    background: #1e242d;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.widget-mockup-body {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.shield-icon {
    font-size: 2.5rem;
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

.mockup-text {
    display: flex;
    flex-direction: column;
}

.mockup-text strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.mockup-text span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

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

.bento-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.bento-wide {
    grid-column: span 2;
}

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

    .bento-wide {
        grid-column: span 1;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Widget Showcase (Landing) */
.widget-showcase {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.widget-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1.2rem;
    background: rgba(47, 129, 247, 0.08);
    border: 1px solid rgba(47, 129, 247, 0.25);
    border-radius: 12px;
    animation: callout-pulse 3s ease-in-out infinite;
}

.widget-callout span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.widget-callout-arrow {
    font-size: 1.4rem;
    color: var(--primary-color);
    animation: bounce-arrow 1.5s ease-in-out infinite;
    line-height: 1;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

@keyframes callout-pulse {

    0%,
    100% {
        border-color: rgba(47, 129, 247, 0.25);
    }

    50% {
        border-color: rgba(47, 129, 247, 0.5);
    }
}

/* Discount Pricing */
.plan-price span.price-original,
.price-original {
    font-size: 1.4rem !important;
    color: var(--text-muted) !important;
    text-decoration: line-through !important;
    margin-right: 0.5rem;
    font-weight: 500 !important;
}

.plan-price span.price-discounted,
.price-discounted {
    color: #34d399 !important;
    font-weight: 800 !important;
}

/* Launch Banner */
.launch-banner {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.launch-card {
    background: linear-gradient(135deg, rgba(137, 87, 229, 0.1) 0%, rgba(47, 129, 247, 0.1) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-glow);
    animation: float-pulse 4s ease-in-out infinite;
    flex-wrap: wrap;
    justify-content: space-between;
}

@keyframes float-pulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(47, 129, 247, 0.2);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 0 30px rgba(137, 87, 229, 0.4);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(47, 129, 247, 0.2);
    }
}

.launch-icon {
    font-size: 3.5rem;
    animation: wiggle 2s infinite;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.launch-content {
    flex: 1;
    min-width: 250px;
}

.launch-content h3 {
    color: #a5b4fc;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
}

.launch-content p {
    margin-bottom: 0;
    color: var(--text-main);
    font-size: 1.1rem;
}

.launch-coupon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(13, 17, 23, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--secondary-color);
    min-width: 200px;
}

.coupon-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.copy-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.copy-btn.copied {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
    background: linear-gradient(to bottom, #161b22, #0d1117);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 2rem;
    transform: translate(25%, 50%) rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.plan-price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pages generic content (Legal) */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    text-align: left;
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}

.page-content p {
    margin-bottom: 1.2rem;
}

/* Integrations Section */
.integrations {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.integrations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.integration-item {
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-item img {
    max-height: 100%;
    width: 40px;
}

.integration-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(47, 129, 247, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1,
    .hero-content p {
        text-align: center;
    }

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

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 1.5rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* Language Selector */
.lang-selector-section {
    padding: 4rem 1.5rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
    margin-bottom: -2rem;
}

.lang-selector-section p {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.lang-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
}

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

.lang-btn.active {
    color: var(--text-main);
    background: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(47, 129, 247, 0.15);
}

.lang-btn .flag {
    font-size: 1.1rem;
}

/* ==========================================================================
   Banner de Consentimiento de Cookies (Modo Oscuro)
   ========================================================================== */

/* Wrapper Principal: Flotante, centrado abajo y adaptable */
#cookie_consent_banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 800px;
    z-index: 2147483647;
    /* Se asegura de estar por encima de cualquier otro elemento */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Contenedor: Diseño de tarjeta oscura moderna */
.cookie_consent_container {
    background-color: #18181b;
    /* Fondo oscuro (Zinc 900) */
    border: 1px solid #27272a;
    /* Borde sutil (Zinc 800) */
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

/* Texto del banner */
.cookie_consent_text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #d4d4d8;
    /* Texto claro (Zinc 300) */
    text-align: left;
    flex: 1;
}

/* Agrupación de botones */
.cookie_consent_buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
}

/* Estructura base de los botones */
.cookie_consent_btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

/* Botón Aceptar: Llamada a la acción principal */
.cookie_consent_btn_accept {
    background-color: #10b981;
    /* Verde esmeralda */
    color: #ffffff;
}

.cookie_consent_btn_accept:hover {
    background-color: #059669;
    /* Verde esmeralda ligeramente más oscuro al hacer hover */
}

/* Botón Rechazar: Secundario/Fantasma */
.cookie_consent_btn_reject {
    background-color: transparent;
    color: #a1a1aa;
    /* Gris neutro (Zinc 400) */
    border: 1px solid #3f3f46;
    /* Borde visible pero tenue */
}

.cookie_consent_btn_reject:hover {
    background-color: #27272a;
    /* Fondo gris al hacer hover */
    color: #f4f4f5;
    /* Texto más brillante */
}

/* ==========================================================================
   Media Queries (Desktop)
   ========================================================================== */
@media (min-width: 768px) {
    .cookie_consent_container {
        flex-direction: row;
        /* En pantallas grandes, texto y botones van en una misma línea */
        gap: 32px;
    }

    .cookie_consent_buttons {
        width: auto;
        /* Los botones se adaptan a su contenido en vez de ocupar el 100% */
    }

    .cookie_consent_btn {
        flex: none;
        /* Quitamos el flex: 1 para que no se estiren */
    }
}