/* ==========================================================================
   S&Technology — Rediseño 2026 · Tema oscuro con acento naranja
   Inspirado en interfaces SaaS modernas. Conserva la identidad de marca
   (naranja #FF6B35 / rojo #E63946) y todos los "ganchos" del JavaScript.
   ========================================================================== */

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

:root {
    --primary-orange: #FF6B35;
    --primary-red: #E63946;
    --bg: #0d0e13;
    --surface: #15161d;
    --surface-2: #1b1d26;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #f3f4f7;
    --muted: #9a9cab;
    /* Alias heredados para que referencias inline sigan resolviendo */
    --dark: #0d0e13;
    --light: #ffffff;
    --gray: #15161d;
    --grad: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* Eyebrow / pill encima de los títulos de sección */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.28);
}

/* ============================= Navigation ============================= */
nav {
    background: rgba(13, 14, 19, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    height: 46px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.25s;
    font-weight: 500;
    font-size: 0.98rem;
    position: relative;
}

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

nav a.active {
    color: var(--primary-orange);
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================= Hero ============================= */
.hero {
    position: relative;
    padding: 150px 20px 90px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 107, 53, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(230, 57, 70, 0.12) 0%, transparent 42%),
        var(--bg);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 40%, rgba(230, 57, 70, 0.08) 0%, transparent 25%);
    animation: orbFloat 14s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(0, -22px, 0) scale(1.06); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.15rem;
    margin-bottom: 1.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffd9c9;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fadeInUp 1s ease;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-orange);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em;
}

.hero .highlight {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.92rem;
    color: var(--muted);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.02rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    font-family: inherit;
}

.btn svg {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--grad);
    color: var(--light);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Hero visual — panel ilustrativo tipo "Centro de Operaciones" */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.panel {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.panel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3a3d4a;
}

.panel-dot:nth-child(1) { background: #ff5f57; }
.panel-dot:nth-child(2) { background: #febc2e; }
.panel-dot:nth-child(3) { background: #28c840; }

.panel-title {
    margin-left: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.panel-body {
    padding: 1.4rem;
}

.panel-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 0.7rem;
    text-align: center;
}

.metric-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1.1;
}

.metric-lbl {
    font-size: 0.72rem;
    color: var(--muted);
}

.panel-status {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.3rem;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

.status-ok {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.15);
}

.panel-feed {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border);
    padding-top: 1.1rem;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.feed-item .feed-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-orange);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.feed-item em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.72rem;
    color: #6b6d7c;
}

/* ============================= Section title ============================= */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-title .underline {
    width: 90px;
    height: 4px;
    border-radius: 4px;
    background: var(--grad);
    margin: 0 auto;
}

/* ============================= Services ============================= */
.services {
    padding: 90px 20px;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    padding: 2.2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    margin-bottom: 1.4rem;
    border-radius: 14px;
    color: var(--primary-orange);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(230, 57, 70, 0.12));
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.service-card p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.96rem;
}

/* ============================= About ============================= */
.about {
    padding: 90px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.3rem;
    color: var(--text);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1.1rem;
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 0.8rem;
}

.about-features {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem;
    transition: all 0.3s;
}

.feature:hover {
    border-color: rgba(255, 107, 53, 0.35);
    transform: translateX(4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.feature-text h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 1.02rem;
}

.feature-text p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================= Products ============================= */
.products {
    padding: 90px 20px;
    background: var(--bg);
}

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

.product-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.product-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 1.2rem;
    border-radius: 13px;
    color: var(--primary-orange);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(230, 57, 70, 0.12));
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.product-card ul {
    list-style: none;
}

.product-card ul li {
    color: var(--muted);
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.94rem;
}

.product-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-orange);
}

/* ============================= Testimonials ============================= */
.testimonials {
    padding: 90px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials .section-title h2 {
    color: var(--text);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.4rem;
    left: 1.2rem;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(255, 107, 53, 0.25);
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 53, 0.35);
    transform: translateY(-5px);
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 0.98rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--text);
    font-size: 1rem;
}

.author-info p {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================= Clients ============================= */
.clients {
    padding: 90px 20px;
    background: var(--bg);
    overflow: hidden;
}

.clients-slider {
    margin-top: 3rem;
    position: relative;
    overflow-x: auto;
    padding: 20px 0;
    cursor: grab;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-slider::-webkit-scrollbar {
    display: none;
}

.clients-slider.grabbing {
    cursor: grabbing;
}

.clients-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================= Políticas ============================= */
.politicas {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.politicas-hero {
    padding: 90px 20px 40px;
    text-align: center;
}

.politicas-hero h2 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.politicas-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
}

.politicas-body {
    padding: 0 20px 90px;
}

.accordion-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.accordion-item.active {
    border-color: rgba(255, 107, 53, 0.4);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-header h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
}

.accordion-icon {
    font-size: 1.6rem;
    color: var(--primary-orange);
    transition: transform 0.3s;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-content-inner {
    padding: 0 1.6rem 1.6rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.9rem 0;
    transition: color 0.25s;
    line-height: 1.4;
}

.doc-link:hover {
    color: var(--primary-orange);
}

.doc-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--primary-orange);
    transition: transform 0.25s;
}

.doc-link:hover svg {
    transform: translateY(-2px);
}

/* ============================= PQRS ============================= */
.pqrs {
    padding: 90px 20px;
    background: var(--bg);
}

.pqrs-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.pqrs-info h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.pqrs-info p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.pqrs-tipos {
    list-style: none;
    margin-top: 1.2rem;
}

.pqrs-tipos li {
    color: var(--muted);
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.pqrs-tipos li:last-child {
    border-bottom: none;
}

.pqrs-tipos li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 700;
}

.pqrs-form {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 18px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b6d7c;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-group select option {
    background: var(--surface-2);
    color: var(--text);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-aviso {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================= CTA ============================= */
.cta-section {
    padding: 90px 20px;
    background: var(--grad);
    color: var(--light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-buttons {
    justify-content: center;
}

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.cta-section .btn-secondary:hover {
    background: #fff;
    color: var(--primary-red);
    border-color: #fff;
}

/* ============================= Footer ============================= */
footer {
    background: #08090d;
    color: var(--text);
    padding: 70px 20px 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.footer-section h3 {
    margin-bottom: 1.3rem;
    color: var(--primary-orange);
    font-size: 1.05rem;
}

.footer-section p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-section a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

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

/* ============================= Floating / utility ============================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.25s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--primary-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary-orange);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    z-index: 1100;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus-visible {
    left: 0;
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ============================= Animaciones ============================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.typing-cursor::after {
    content: '|';
    margin-left: 2px;
    color: var(--primary-orange);
    animation: blink 1s step-end infinite;
    -webkit-text-fill-color: var(--primary-orange);
}

.anim-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= Responsive ============================= */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pqrs-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 14, 19, 0.98);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        gap: 1rem;
        font-size: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-top: 2px solid var(--primary-orange);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 120px 20px 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .politicas-hero h2 {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .anim-fade {
        opacity: 1;
        transform: none;
    }

    .clients-track {
        animation: none;
    }
}

/* ==========================================================================
   Submenú desplegable: "Cumplimiento" anidado bajo "Nosotros"
   ========================================================================== */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-caret {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.has-dropdown:hover .dropdown-caret,
.has-dropdown.dropdown-open .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    min-width: 200px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1002;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 1.4rem;
    width: 12px;
    height: 12px;
    background: var(--surface-2);
    border-left: 1px solid var(--border-strong);
    border-top: 1px solid var(--border-strong);
    transform: rotate(45deg);
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(255, 107, 53, 0.12);
    color: var(--primary-orange);
}

/* Desktop: aparece con hover, y también si se marca abierto por clic/teclado */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.dropdown-open .dropdown-menu,
    .dropdown-toggle:focus-visible + .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Móvil: el submenú queda siempre visible, anidado bajo "Nosotros" */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(255, 107, 53, 0.35);
        background: none;
        margin: 0.5rem 0 0 0.5rem;
        padding: 0 0 0 0.75rem;
        min-width: 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li a {
        padding: 0.5rem 0;
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.92rem;
    }

    .dropdown-caret {
        display: none;
    }
}
