/* ======== Configuración Global y Variables (Nueva Paleta) ======== */
:root {
    --color-primary: #020202;      /* Títulos (nuevo negro) */
    --color-text-dark: #090909;    /* Texto principal (nuevo negro) */
    --color-accent: #00B2A9;      /* Acento Turquesa (mantenido) */
    --color-accent-hover: #008C84; /* Acento Turquesa (oscurecido) */
    --color-text: #FFFFFF;        /* Texto sobre fondos oscuros */
    --color-bg-light: #FFFFFF;
    --color-bg-section: #EFEFEF;   /* Gris para fondos de sección y bordes */
    --color-dark-bg: #090909;      /* Fondo oscuro para footer */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Importar la fuente 'Inter' desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste para el header fijo */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    padding: 0 20px; /* Added general horizontal spacing */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--color-primary);
    font-weight: 700;
}

h1 { font-weight: 900; }

p {
    margin-bottom: 0.5rem;
    text-indent: 1.5em; /* Added text indentation */
}

section {
    padding: 120px 0;
}

/* ======== Header Fijo ======== */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 40px; 
}

.header-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: var(--color-accent);
}

/* ======== Botones CTA ======== */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: var(--color-text); /* Texto blanco para mejor contraste */
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-text);
    transform: scale(1.05);
}

.cta-main {
    font-size: 1.2rem;
    margin-top: 20px;
}

/* ======== Hero Section ======== */
#hero {
    position: relative;
    color: var(--color-text);
    text-align: center;
    padding: 120px 20px 80px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border: 10px solid white;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 2, 2, 0.75);
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 2.8rem;
    color: var(--color-text);
}

#hero h2 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#hero .highlight {
    background-color: rgba(0, 178, 169, 0.1);
    color: var(--color-accent);
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* ======== KPIs Section ======== */
#kpis {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
    background-color: var(--color-bg-section);
    padding: 40px 0;
}

.kpi-item {
    flex-basis: 150px;
}

.kpi-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.kpi-item h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* ======== Secciones PoC, THD, Pricing ======== */
#poc {
    background-color: #ffffff;
    text-align: center;
}

#thd-detail {
    background-color: var(--color-bg-section);
    text-align: center;
    padding: 40px 0;
}

#poc ul {
    list-style-type: none;
    text-align: left;
    display: inline-block;
    margin-top: 20px;
}

#poc li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

#poc li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

#thd-detail .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 10px 0;
}

#thd-detail .highlight {
    color: var(--color-accent);
    font-weight: 700;
}

/* ======== Use Cases & Social Proof ======== */
#use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.case-studies, .social-proof {
    flex: 1;
    min-width: 300px;
}

.case-studies ul {
    list-style: none;
}

.case-studies li {
    background: var(--color-bg-section);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--color-accent);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start; /* Aligned logos to the left */
    margin-bottom: 30px;
}

.partner-logos span, .partner-logos a {
    font-weight: bold;
    color: #555;
    padding: 10px;
    background: #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.partner-logos a:hover {
    background: #ccc;
}

.video-placeholder {
    border-radius: 8px;
    overflow: hidden; /* To keep the border-radius on the video */
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

/* ======== Formulario ======== */
#form-section {
    background-color: var(--color-bg-section);
    border-radius: 8px;
}

#poc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-bg-section);
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

input:focus, textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 178, 169, 0.4);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--color-primary);
}

.cta-form {
    width: 100%;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.cta-form:disabled {
    background-color: #aaa;
    color: #666;
    cursor: not-allowed;
}

#form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    color: green;
}

.error-message {
    color: #e74c3c;
}


/* ======== Footer ======== */
footer {
    background-color: var(--color-dark-bg);
    color: var(--color-text);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-contact, .footer-links, .footer-legal {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    color: var(--color-text);
    margin-bottom: 15px;
}

footer a {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--color-accent);
}

.footer-legal {
    flex-basis: 100%;
    text-align: center;
    border-top: 1px solid #444; /* Borde más oscuro para el footer */
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ======== Responsive Design ======== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    #hero h2 {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .sticky-header {
        position: static; 
    }

    #kpis {
        justify-content: center;
    }
    .kpi-item {
        flex-basis: 45%;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Language Selector */
.language-selector {
    display: inline-block;
    margin-right: 20px;
}

.language-selector a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 5px;
}

.language-selector a.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* Back to home link */
.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.back-link a:hover {
    text-decoration: underline;
}

.back-link i {
    margin-right: 8px;
}