/* 
   NEOTEC AI SYSTEMS - FINAL PRODUCTION BUILD
   v3.0 - Polish & Compliance
*/

:root {
    /* Color Palette (Applied Globally) */
    --bg-primary: #000010;
    --bg-secondary: #0A0F1A;
    --border-color: #1A2436;
    --text-primary: #F7F9FC;
    --text-secondary: #AAB4C4;
    --accent-brand: #0078D0;
    --accent-glow: #C0D8F8;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}


/* Background Canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 3;
  background: radial-gradient(ellipse at center, #050a1a 0%, #000010 70%, #000010 100%);
}

body > * {
  position: relative;
  z-index: 1;
}


/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header */
.header {
    background: rgba(0, 0, 16, 0.9);
    backdrop-filter: blur(12px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent-brand);
}

.divider {
    color: var(--border-color);
}



/* Hero Section */
.hero-section {
    padding: 01px 0 01px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    /* Center align block inside container, text left aligned */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Keep text left aligned */
}

.hero-logo-wrapper {
  margin-bottom: 6px; /* prueba 8px – 14px */
  display: flex;
  justify-content: center;
  transform: translateX(250px); /* ajusta: 30px – 80px */
}


.hero-logo {
    height: auto;
    width: 280px;
    display: block;
    margin: 0 auto;
}

.qualification-badge {
    display: inline-block;
    color: var(--accent-brand);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 120, 208, 0.3);
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(0, 120, 208, 0.05);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #AAB4C4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
}

.emotional-hook {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-brand);
}

/* Emotional Hooks List */
.emotional-hooks {
    margin-bottom: 32px;
}

.emotional-hook-item {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.emotional-hook-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-brand);
    font-weight: 700;
}

/* CTA Styles */
.cta-wrapper {
    margin: 24px 0;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.primary-cta {
    background-color: var(--accent-brand);
    color: #FFFFFF !important;
    border: 1px solid var(--accent-brand);
    box-shadow: 0 4px 14px rgba(0, 120, 208, 0.4);
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 120, 208, 0.6);
    background-color: #0088ea;
}

/* Hero Micro-Block */
.hero-micro-block {
    margin-top: 32px;
    margin-bottom: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.pro-line {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0.8;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.micro-link {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.micro-icon {
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s;
    filter: grayscale(100%);
    opacity: 0.7;
}

.micro-icon:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

/* Differentiation Block */
.differentiation-block {
    margin-top: 48px;
    padding: 32px 36px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.why-neotec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.why-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.why-item h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.why-item h5 span {
    color: var(--accent-brand);
}

.why-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.diff-content h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.diff-content h4::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--accent-brand);
    margin: 12px auto 0;
    border-radius: 2px;
}

.diff-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.problems-closing {
    margin-bottom: 18px;
    margin-top: 6px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent-brand);
    background: rgba(0, 120, 208, 0.06);
    border-radius: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}



/* Benefits Section */
.benefits-section {
    padding: 80px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-brand);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefit-card .icon {
    color: var(--accent-brand);
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Methodology */
.methodology-section {
    padding: 100px 0;
    background: rgba(10, 15, 26, 0.4);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title.center {
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #0078d4, transparent);
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.method-step {
    position: relative;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.method-step:hover {
    border-top-color: var(--accent-brand);
}

.step-num {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: block;
    font-family: monospace;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Guarantee Strip */
.guarantee-strip {
    background: var(--accent-brand);
    color: white;
    padding: 12px 0;
    font-weight: 500;
}

.flex-strip {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
}

.highlight-text {
    font-weight: 700;
    margin-right: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Process Section */
.process-section {
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.process-list ul {
    list-style: none;
    margin-top: 32px;
}

.process-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.check-icon {
    color: var(--accent-brand);
    margin-right: 16px;
    font-weight: bold;
}

.process-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.meta-item {
    margin-bottom: 24px;
}

.meta-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.meta-item .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-brand);
}

/* Setup/Testimonial */
.setup-section,
.testimonials-section {
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.setup-card,
.review-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.setup-card.not-ideal {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    opacity: 0.9;
}

.setup-card.ideal {
    background: rgba(0, 120, 208, 0.08);
    border-color: rgba(0, 120, 208, 0.25);
}

.review-card{
    position: relative;
    top: 0;
    will-change: top;
}

.review-card:hover{
    top: -4px;
    border-color: rgba(0, 120, 208, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.review-card:nth-child(2){
    top: -6px;
}

.review-card.featured{
    top: -4px;
    border-color: rgba(0, 120, 208, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}


.setup-card ul {
    list-style: none;
}

.setup-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.setup-card li::before {
    content: '•';
    color: var(--text-primary);
    position: absolute;
    left: 0;
}

.review-card .quote {
    font-style: italic;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.review-card .author strong {
    display: block;
    color: var(--accent-brand);
    margin-bottom: 6px;
}

.review-card .author span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.75;
}

/* Problems Section */
.problems-section {
    padding: 80px 0;
}

.problems-section h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.problems-section .section-subtitle {
    color: var(--text-secondary);
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 780px;
}

.section-subtitle {
    opacity: 0.75;
}

.section-subtitle.center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
    color: var(--text-secondary);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 18px;
    align-items: stretch;
}

.problem-box {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.problem-box:hover {
    border-color: rgba(0, 120, 208, 0.35);
    transform: translateY(-3px);
    transition: 0.25s ease;
}

.problem-box h4 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.problem-box ul {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 0 0;
}

.problem-box li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.problem-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-brand);
    font-weight: 700;
    opacity: 0.9;
}

.proof-note {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.85;
}

/* Contact */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(0, 0, 16, 0) 0%, #05080e 100%);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.seniority-signal {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    display: inline-block;
    width: 100%;
}

.priority-selector {
    margin-bottom: 40px;
    text-align: center;
}

.priority-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.p-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.p-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.p-btn.selected {
    background: var(--accent-brand);
    border-color: var(--accent-brand);
    color: white;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-primary);
    outline: none;
    transition: 0.2s;
}

.form-input:focus {
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 2px rgba(0, 120, 208, 0.2);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 12px;
}

.hp-field {
    display: none;
    visibility: hidden;
}

.human-signal {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
}

/* Footer */
.footer {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    z-index: 10;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-email {
    color: var(--accent-brand);
    text-decoration: none;
    display: block;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--accent-brand);
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.legal-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: #4A5568;
    margin-top: 40px;
    font-size: 0.8rem;
    text-align: right;
}

/* Cookie Bar (Bottom Fixed) */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 26, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-bar.visible {
    transform: translateY(0);
}

.cookie-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.cookie-btn.outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cookie-btn.outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.cookie-btn.primary {
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

.cookie-btn.primary:hover {
    background: #E2E8F0;
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.cookie-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal-content {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
}

.cookie-modal-content h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-option p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
}

/* Mobile Sticky FAB */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding: 12px 24px;
    font-size: 0.9rem;
    background-color: var(--accent-brand);
    color: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-weight: 600;
}

.mobile-sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    display: inline-flex;
}

/* Utils */
.hidden {
    display: none !important;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .process-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .cookie-flex {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .legal-links,
    .copyright {
        text-align: left;
    }

    .hero-content {
        align-items: flex-start;
    }
}

/* === Legal header centered & larger === */
.legal-header-text {
  height: 88px;                /* más alto */
  display: flex;
  align-items: center;         /* centra vertical */
}

.legal-header-text a {
  font-size: 1.05rem;          /* más grande */
  letter-spacing: 0.22em;      /* más elegante */
  opacity: 0.9;
}

/* =========================
   LEGAL PAGES LAYOUT
========================= */

.legal-page{
  min-height: 100vh;
  padding: 110px 20px 80px;
}


.legal-container{
  max-width: 880px;
  margin: 0 auto;
  background: rgba(10,15,26,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 48px 48px 56px;
}

.legal-container h1{
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.legal-topline{
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal-divider{
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  margin: 32px 0;
}

.legal-container h2{
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-container p,
.legal-container li{
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-container ul{
  margin-left: 18px;
  margin-top: 10px;
}

.legal-link{
  color: var(--accent-brand);
  text-decoration: none;
}

.legal-link:hover{
  text-decoration: underline;
}

/* =========================
   LEGAL HEADER LAYOUT
========================= */

.legal-header-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.legal-header-center{
  display: flex;
  justify-content: center;
}

.legal-header-right{
  display: flex;
  justify-content: flex-end;
}

/* Texto central */
.legal-brand{
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.9;
}

/* --- Legal pages footer fix --- */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1;
}

.legal-footer{
  width: 100%;
  text-align: center;
  padding: 24px 16px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ===============================
   LEGAL HEADER (Privacy / Terms)
================================ */

.legal-header {
  position: relative;
}

.legal-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

/* Centro absoluto */
.legal-header-center {
  grid-column: 2;
  text-align: center;
}

.legal-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
}

/* Idioma a la derecha */
.legal-header-lang {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-header-lang .lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}

.legal-header-lang .lang-btn.active {
  color: var(--accent-brand);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .legal-header-inner {
    grid-template-columns: 1fr auto;
  }

  .legal-header-center {
    grid-column: 1;
    text-align: left;
  }

  .legal-header-lang {
    grid-column: 2;
  }
}

/* =========================
   MOBILE FIX - PRIVACY / TERMS
   ========================= */
@media (max-width: 768px) {

  /* Baja un poco el contenido y evita que quede "apretado" */
  .legal-page{
    padding: 96px 14px 90px; /* top / sides / bottom */
  }

  /* Contenedor más cómodo en móvil */
  .legal-container{
    padding: 22px 18px 26px;
    border-radius: 18px;
  }

  /* Tipografía más proporcional */
  .legal-container h1{
    font-size: 2.05rem;
    line-height: 1.15;
  }

  .legal-container h2{
    margin-top: 26px;
  }

  /* Pills (meta) en 1 columna si se ven apretadas */
  .legal-meta{
    flex-direction: column;
    align-items: flex-start;
  }

  /* Header legal: mantener marca visible y controles a la derecha */
  .legal-header-inner{
    column-gap: 12px;
  }

  .legal-brand{
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .lang-switch .lang-btn{
    font-size: 0.85rem;
    padding: 6px;
  }
}

@media (max-width: 768px){
  .header-container{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo-text{
    grid-column: 2;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .lang-switch{
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 768px){
  .hero-section{
    padding-top: 120px;
    padding-bottom: 72px;
  }

  .hero-section h1{
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-section p{
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 768px){
  .hero-section{
    padding-top: 120px;
    padding-bottom: 72px;
  }

  .hero-section h1{
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-section p{
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 768px){
  .grid-2,
  .grid-3{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px){
  .mobile-sticky-cta{
    bottom: 84px; /* en vez de 24–40 */
  }
}

@media (max-width: 768px){
  section{
    padding-left: 16px;
    padding-right: 16px;
  }

  h2{
    font-size: 1.4rem;
  }

  p{
    font-size: 0.95rem;
  }
}

@media (max-width: 768px){
  html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #050814; /* mismo fondo de la landing */
  }

  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    width: 100%;
  }
}

@media (max-width: 768px){
  .grid-2,
  .grid-3,
  .features-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px){
  .cta-button,
  .primary-btn,
  .secondary-btn,
  .form-submit,
  .action-btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }
}

@media (max-width: 768px){
  .mobile-sticky-cta {
    left: 50%;
    transform: translateX(-50%);
    bottom: 72px;
  }
}

@media (max-width: 768px){
  .header {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* =========================
   HERO LOGO – MOBILE CENTER
========================= */

@media (max-width: 768px){

  .hero-logo-wrapper{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    transform: none !important; /* elimina translateX */
    margin-bottom: 24px;
  }

  .hero-logo{
    width: 72vw;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
  }
}

/* =========================
   MOBILE SPACING & LAYOUT FIX
========================= */

@media (max-width: 768px){

  /* Grid de problemas / soluciones */
  .problems-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Cards */
  .problem-box{
    padding: 20px !important;
    min-height: auto !important;
  }

  .problem-box h3{
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .problem-box li{
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  /* Botón dentro de cards */
  .problem-box .primary-cta,
  .problem-box .cta-button{
    align-self: center;
    margin-top: 16px;
    padding: 12px 22px;
    text-align: center;
  }

  /* Secciones generales */
  section{
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* =========================
   STICKY CTA – MOBILE FIX
========================= */

.mobile-sticky-cta{
  position: fixed;
  bottom: 100px;
  left: 50%;
  right: auto;

  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;

  transform: translate(-50%, 20px);
  opacity: 0;

  padding: 14px 26px;
  line-height: 1.2;
  white-space: nowrap;

  font-weight: 600;
  font-size: 0.95rem;

  background-color: var(--accent-brand);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;

  z-index: 999;
  transition: all 0.35s ease;
}

.mobile-sticky-cta.visible{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================
   DESKTOP LAYOUT SCALE FIX
========================= */
@media (min-width: 1200px) {

  .hero-content {
    max-width: 1000px;
  }

}

@media (min-width: 1400px) {

  .hero-title {
    font-size: 4.1rem;
    line-height: 1.12;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }
}

@media (min-width: 1200px) {

  section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .footer {
    padding-top: 100px;
  }

}

@media (min-width: 1600px) {
  .footer .container {
    max-width: 1600px;
  }
}

@media (min-width: 1200px) {
  .footer {
    padding-top: 120px;
    padding-bottom: 140px;
  }
}

@media (min-width: 1200px) {

  .footer-content {
    gap: 80px;
  }

  .footer h4,
  .footer strong {
    font-size: 1.05rem;
  }

  .contact-email {
    font-size: 1.25rem;
  }

  .social-link {
    font-size: 1rem;
  }

  .legal-links a {
    font-size: 0.95rem;
  }

  .copyright {
    font-size: 0.9rem;
    margin-top: 60px;
  }
}

@media (min-width: 1200px) {
  .footer .primary-cta {
    padding: 18px 42px;
    font-size: 1.05rem;
  }
}

/* WhatsApp CTA – style secondary */
.whatsapp-cta{
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.whatsapp-cta:hover{
  background: rgba(37, 211, 102, 0.18);
  transform: translateY(-1px);
}

/* =========================
   WHATSAPP CTA
========================= */

.cta-alt {
  margin-top: 16px;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 32px;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 500;

  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  text-decoration: none;

  background: rgba(37, 211, 102, 0.06);
  transition: all 0.25s ease;
}

.whatsapp-cta:hover {
  background: rgba(37, 211, 102, 0.15);
  transform: translateY(-1px);
}

/* WhatsApp CTA inside Contact / Diagnostic section */
.contact-whatsapp {
  margin-top: 16px;
  text-align: center;
}

.contact-whatsapp .whatsapp-cta {
  font-size: 0.95rem;
  padding: 14px 32px;
  opacity: 0.95;
}

.video-section {
  padding: 80px 0;
  text-align: center;
}

.video-wrapper {
  max-width: 900px;
  margin: 40px auto 0;
}

.video-player {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* VIDEO RESPONSIVE CORRECTO */
.video-wrapper{
  width: 100%;
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.video-player{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #000;
}

/* Ajustes específicos para celular */
@media (max-width: 768px){

  .video-section{
    padding: 40px 0;
  }

  .video-wrapper{
    margin-top: 20px;
    padding: 0 14px;
  }

  .video-player{
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  /* Evita que el contenedor se desborde */
  .container{
    padding-left: 16px;
    padding-right: 16px;
  }
}

.video-wrapper{
  width: 100%;
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.video-player{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #000;
}