:root {
    --primary-color: #3b82f6;
    --primary-darker: #2563eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-white);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.main-header {
    background: var(--background-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img { 
    height: 120px; 
    width: auto;
    transition: transform 0.2s ease;
}
.logo:hover img {
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-toggle {
    display: flex;
    gap: 8px;
}

.language-toggle a {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.language-toggle a.active {
    background: var(--primary-color);
    color: white;
}

.language-toggle a:not(.active) {
    color: var(--text-secondary);
    background: var(--background-light);
}

.language-toggle a:hover:not(.active) {
    background: var(--border-color);
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 24px;
    transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--primary-color); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 100%);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn i {
    font-size: 1rem;
}

.btn-contact {
    background: var(--success-color);
}
.btn-contact:hover {
    background: #059669;
}

/* --- Typography & Colors --- */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-darker);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-header h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    max-width: 900px;
    margin: 0 auto 24px;
    line-height: 1.1;
}
.hero .highlight { color: var(--primary-color); }
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero .qa-banner {
    max-width: 700px;
    width: 100%;
    margin-top: 40px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    animation: float-banner 5s ease-in-out infinite;
}

/* --- Hero Stats Badges --- */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 1);
}

.stat-badge i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

@keyframes float-banner {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* --- Global Styles --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* --- Stats Section --- */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Problem Section --- */
.problem-section {
    padding: 80px 0;
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.15);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card h3 { 
    color: #ef4444;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.problem-card h3 i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.problem-card p { 
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Solution Section --- */
.solution-section {
    padding: 80px 0;
    background: var(--background-white);
}

.solution-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.comparison-side {
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    background: var(--background-light);
}

.traditional-side h3 {
    color: #ef4444;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.thalos-side h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.comparison-side ul {
    list-style-position: inside;
    padding-left: 0;
}

.comparison-side ul li {
    margin-bottom: 12px;
    list-style: none;
    display: flex;
    align-items: flex-start;
}

.comparison-side ul li::before {
    margin-right: 12px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

.traditional-side ul li {
    color: var(--text-secondary);
}
.traditional-side ul li::before {
    content: "\f00d"; /* Icono de 'times' */
    color: #ef4444;
}

.thalos-side ul li {
    color: var(--text-secondary);
}
.thalos-side ul li::before {
    content: "\f00c"; /* Icono de 'check' */
    color: #22c55e;
}

/* --- ROI Calculator --- */
.roi-calculator {
    padding: 80px 0;
    background: white;
}

.calculator-container {
    margin-top: 40px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.calculator-side {
    background: var(--background-light);
    border-radius: 16px;
    padding: 40px;
}

.calculator-side h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-label {
    font-weight: 500;
    color: var(--text-primary);
}

.cost-value {
    font-weight: 700;
    color: var(--primary-color);
}

.total-cost {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: var(--background-light);
    color: var(--text-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.savings-highlight {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--background-light);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Features Section --- */
.features {
    padding: 80px 0;
    background: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* --- Testimonials --- */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: var(--background-light);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

/* --- CTA Section --- */
.cta {
    background: var(--background-light);
    color: var(--text-primary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#particles-js-contact {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.6;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    color: var(--text-secondary);
}

/* Contenedor del formulario con fondo blanco similar al login */
#contactForm {
    max-width: 500px; 
    margin: 40px auto; 
    text-align: left;
    background: var(--background-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 3;
}

.btn-white {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    color: white;
    font-size: 1.1rem; 
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.guarantee {
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* --- Estilos del Formulario de Contacto (inspirado en Login) --- */
#contactForm .form-group {
    margin-bottom: 35px;
}

#contactForm .input-container {
    position: relative;
}

#contactForm .input-container input,
#contactForm .input-container textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

#contactForm .input-container textarea {
    resize: none;
    overflow: hidden;
    min-height: 50px;
}

#contactForm .input-container input:focus,
#contactForm .input-container textarea:focus {
    border-bottom-color: var(--primary-color);
}

#contactForm .input-container input:focus + label,
#contactForm .input-container input:valid + label,
#contactForm .input-container textarea:focus + label,
#contactForm .input-container textarea:valid + label {
    top: -20px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

#contactForm .input-container label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

#contactForm .input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-darker));
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#contactForm .input-container input:focus ~ .input-line,
#contactForm .input-container textarea:focus ~ .input-line {
    width: 100%;
}


/* --- Footer --- */
.main-footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-header h2, .cta h2 { font-size: 2rem; }
    .solution-comparison { grid-template-columns: 1fr; }
    .calculator-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 60px 0; }
    .problem-section, .solution-section, .roi-calculator, .features, .testimonials, .cta { padding: 60px 0; }
}

/* Modal estilos */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-error {
    background: #fef2f2;
    border: 1px solid #f87171;
}

.modal-error .modal-header h3 {
    color: #dc2626;
}

.modal-error .modal-body p {
    color: #dc2626;
}

.modal-error .btn-primary {
    background: #dc2626;
}

.modal-error .btn-primary:hover {
    background: #b91c1c;
} 

/* --- Video Container --- */
.video-container {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    border: 4px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
} 

/* --- Form Header with Logo --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.form-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.form-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.form-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.5px;
}

/* --- Inline Logo in Titles --- */
.inline-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.comparison-side h3 .inline-logo,
.calculator-side h3 .inline-logo {
    width: 36px;
    height: 36px;
    margin-right: 12px;
}

.thalos-side h3:hover .inline-logo,
.calculator-side h3:hover .inline-logo {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* --- CTA Section & Form Styling (inspired by Login) --- */ 