/* ==========================================================================
   TOTALSYS SOLUTIONS - CSS CORPORATIVO 2026
   Diseño responsive profesional | Mobile-first | Accesible
   VARIABLES CSS CORPORATIVAS Y TIPOGRAFÍA
========================================================================== */

/* =================1. RESET PRO TOTALSYS ================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Media responsive */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto; 
    aspect-ratio: attr(width) / attr(height);
    display: block;
}
img[width][height] {
    height: auto;
}

/* Forms */
input,
button,
textarea,
select {
    font: inherit;
}

/* Headings reset */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Focus accesible */
:focus-visible {
    outline: 2px solid #0055FF;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(0, 85, 255, 0.2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================2. MI ADN VISUAL-VARIABLES ================= */
:root {

    /* =========================
     🎨 1. BRAND COLORS
  ========================== */
    --color-primary: #010310;
    --color-primary-light: #003773;
    --color-primary-dark: #00152B;


    --color-accent: #B8942A;
    --color-accent-soft: #F8F4E8;

    --brand-gold: #957C3D;
    --brand-blue: #002349;

    /* =========================
     ⚪ 2. NEUTRALS
  ========================== */
    --color-bg: #EDEDED;
    --color-surface: #FFFFFF;

    --color-text: #1F2937;
    --color-text-muted: #4B5563;

    --color-border: #E5E7EB;

    /* =========================
     🧠 3. SEMÁNTICAS
  ========================== */
    --bg-page: var(--color-bg);
    --bg-card: var(--color-surface);
    --bg-header: rgba(0, 35, 73, 0.85);
    --bg-footer: var(--color-primary-dark);

    --text-main: var(--color-text);
    --text-muted: var(--color-text-muted);
    --text-inverse: #FFFFFF;

    --cta-bg: var(--color-accent);
    --cta-hover: #D1A93A;
    --cta-text: #FFFFFF;

    /* =========================
     ✍️ 4. TIPOGRAFÍA (PRO)
  ========================== */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* =========================
     🔠 ESCALA TIPOGRÁFICA
  ========================== */
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.5rem;
    --fs-3xl: 3.75rem;

    --lh-base: 1.7;
    --ls-heading: -0.02em;

    /* =========================
     📐 ESPACIADO
  ========================== */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* =========================
     🧱 RADIOS
  ========================== */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* =========================
     🌫️ SOMBRAS
  ========================== */
    --shadow-sm: 0 2px 8px rgba(0, 35, 73, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 35, 73, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 35, 73, 0.12);

    /* =========================
     ⚡ TRANSICIONES
  ========================== */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* =========================
     🌈 GRADIENTES
  ========================== */
    --gradient-primary: linear-gradient(135deg, #002349, #003773);
    --gradient-accent: linear-gradient(135deg, #B8942A, #D1A93A);

    /* Gradientes OTROS*/
    --gradient-tech: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
    --gradient-metal: linear-gradient(180deg, var(--neutral-white) 0%, var(--neutral-silver) 100%);
    --gradient-gold: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
}

/* =================3. BASE LAYOUT — PRO LEVEL ================= */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: var(--bg-page);
    color: var(--text-main);

    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    letter-spacing: var(--ls-body);

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* MAIN CONTENT */
main {
    flex: 1;
    width: 100%;
}

/* ===============================
   CONTAINER SYSTEM (UPGRADE)
================================ */

.container {
    width: 100%;
    max-width: 1200px;

    margin-inline: auto;

    /* padding inteligente */
    padding-inline: clamp(16px, 4vw, 48px);
}

/* Variante más estrecha (para textos) */
.container-sm {
    max-width: 768px;
}

/* Variante más ancha (hero / dashboards) */
.container-lg {
    max-width: 1400px;
}

/* Ritmo vertical global */
section {
    padding-block: clamp(64px, 10vw, 120px);
}

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(circle at 20% 30%, rgba(0, 85, 255, 0.25), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(201, 168, 76, 0.22), transparent 45%),
        radial-gradient(circle at 60% 40%, rgba(0, 55, 115, 0.18), transparent 50%);

    filter: blur(80px);
    opacity: 0.8;

    animation: meshMove 18s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

.mesh-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.04'/%3E%3C/svg%3E");
    opacity: 0.5;
}


@keyframes meshMove {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(20px, -10px);
    }

    100% {
        transform: scale(1.05) translate(-15px, 10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mesh-bg {
        animation: none;
    }
}

/* =================4. HEADER  LOGO MENU ENCABEZADO ================= */
/* HEADER BASE */
.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: var(--color-primary);
}

/* CONTENEDOR INTERNO */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
}

/* LOGO */
.logo {
    width: 160px;
    height: auto;

    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.03);
}


/*nuevas clases para navegacion con ul/*

/* Contenedor principal */
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* La lista que ahora envuelve todo */
.main-nav ul {
    list-style: none;
    /* Quitamos los puntos negros */
    margin: 0;
    padding: 0;
    display: flex;
    /* Los vuelve a poner en fila */
    align-items: center;
    gap: 20px;
    /* Espacio uniforme entre items */
}

/* Ajuste para los links */
.main-nav .nav-link {
    position: relative;
    /* Importante para posicionar la línea */
    text-decoration: none;
    color: #fff;
    display: inline-block;
    padding: 8px 0;
    /* Espacio para que la línea no quede pegada al texto */
    margin: 0 12px;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
    opacity: 0.85;

}

/* Efecto Hover que ya traías */
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--color-accent);
    /* Tu dorado #DEB520 */
}

.main-nav .nav-link[href*="contacto"]:hover {
    background: #fff;
    transform: translateY(-2px);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    /* Empieza con ancho cero */
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    /* Tu Dorado #DEB520 */
    transition: width 0.3s ease;
    /* Aquí está la magia de la animación */
}

/* Al pasar el mouse o si es la página activa */
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
    /* La línea se extiende al 100% */
}

/* Color del texto al hacer hover */
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--color-accent);
}

/* Estilo del botón de contacto en el menú */
.main-nav .btn-header {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    /* Tu Dorado */

    padding: 8px 18px;
    border: 2px solid var(--color-accent);
    /* Borde marcado */
    border-radius: var(--radius-md);

    text-decoration: none;
    display: inline-block;
    transition: var(--transition-base);
    line-height: 1;
    /* Para que quede bien centrado el texto */
}

/* Efecto al pasar el mouse (Hover) */
.main-nav .btn-header:hover {
    background: var(--color-accent);
    /* Se rellena de dorado */
    color: #000;
    /* Texto en negro para contraste total */
    box-shadow: 0 0 15px rgba(222, 181, 32, 0.3);
    /* Un brillo sutil tipo neón */
    transform: translateY(-2px);
    /* Un pequeño salto pro */
}


.main-nav .btn-header::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: var(--color-accent);
    bottom: -8px;
    /* La bajamos un poco más para que no toque el borde del botón */
    width: 0;
    /* Empieza en cero */
    transition: width 0.3s ease;
}

.main-nav .btn-header.active::after {
    width: 100%;
    /* Se expande para marcar la ubicación */
}

/* CTA */
.btn-header {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);

    padding: 8px 16px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);

    transition: var(--transition-base);
}

nav a.btn-header:hover {
    background: var(--gradient-accent);
    color: var(--text-inverse);
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* =================5. FOOTER Y REDES TOTALSYS PRO ================= */

.site-footer {
    background: var(--bg-footer);
    color: var(--text-inverse);
    font-family: var(--font-body);
    border-top: 2px solid var(--color-accent);
}

/* TOP */
.footer-top {
    padding: var(--space-xl) 0;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* BRAND */
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--space-sm);
    max-width: 320px;
}

/* HEADINGS */
.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-sm);
}

/* LINKS */
.site-footer a {
    text-decoration: none;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-inverse);
}

/* CONTACTO */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-list i {
    color: var(--color-accent);
    min-width: 18px;
    margin-top: 2px;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.75);
}

.contact-list span {
    color: rgba(255, 255, 255, 0.55);
}

/* SOCIAL */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: var(--space-sm);
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-sm) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* ================= WHATSAPP FLOAT ================= */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;

    width: 56px;
    height: 56px;
    border-radius: 50%;

    background: #25D366;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.4rem;

    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* TOOLTIP */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);

    background: var(--color-primary);
    color: var(--text-inverse);

    padding: 8px 14px;
    border-radius: var(--radius-sm);

    font-size: 0.8rem;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transition: var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ================= SCROLL TOP ================= */

.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 32px;
    z-index: 999;

    width: 42px;
    height: 42px;
    border-radius: 12px;

    background: rgba(0, 35, 73, 0.85);
    backdrop-filter: blur(10px);

    color: var(--color-accent);
    border: 1px solid rgba(184, 148, 42, 0.3);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    /* Estado oculto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(20px) scale(0.85);
    filter: blur(6px);

    transition:
        opacity 0.35s ease,
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.3s ease,
        box-shadow 0.3s ease;
}

/* Estado visible */
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
    filter: blur(0);

    animation: floatIn 0.5s ease;
}

/* Hover premium */
.scroll-top:hover {
    background: var(--color-accent);
    color: var(--color-primary);

    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(184, 148, 42, 0.25);
}

/* Animación entrada */
@keyframes floatIn {
    0% {
        transform: translateY(30px) scale(0.8);
        opacity: 0;
    }

    60% {
        transform: translateY(-6px) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* =================6. HERO SECTION COMPLETO ================= */

.hero-section {
    padding: 100px var(--space-lg) 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

/* --- LADO TEXTO --- */
.hero-text-side {
    text-align: left;
}

/* Colores específicos para resaltar texto */
.text-gold {
    color: var(--brand-gold);
}

.text-blue {
    color: var(--brand-blue)
}

.hero-title .text-gold {
    display: inline-block;
    font-weight: 800;
    /* Un poco más de peso para resaltar */
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    /* Fluido y de gran impacto */
    color: var(--brand-gold);
    line-height: 1.1;
    font-weight: 850;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-title-mid {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Alineados al texto */
    /* margin-bottom: 3rem; */
}

.btn-cta-primary {
    display: inline-block;
    padding: 1rem 2.2rem;
    background-color: var(--brand-gold);
    color: white;
    /* font-weight: 700; */
    /* text-transform: uppercase; */
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(149, 124, 61, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(149, 124, 61, 0.3);
}

.trust-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #667085;
    grid-column: 1 / -1;
    text-align: center;
    /* Centra el texto */
    display: flex;
    flex-direction: column;
    /* Apila los dos párrafos */
    align-items: center;
    /* Los centra horizontalmente en el flex */
    gap: 0.5rem;
    /* Espacio opcional entre las dos líneas de texto */
}

.trust-bar span {
    font-weight: 700;
    color: var(--brand-blue);
}

.hero-visual-side {
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-illustration {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.floating-illustration img {
    width: 100%;
    max-width: 520px;
    height: auto;
    animation: floating 6s ease-in-out infinite;
    mask-image: radial-gradient(circle, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 95%);
}

/* =================SIGUIENTES EN HOME ================= */

.section {
    padding: 50px 20px;
    /* Más aire arriba y abajo para que respire */
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    /* Fluido */
    font-weight: 800;
    line-height: 1.2;
    /* background: linear-gradient(135deg, var(--color-text) 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    letter-spacing: -0.02em;
}


.section p {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
    margin-bottom: 20px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-dolor {
    background: #0b1a2b;
    color: #fff;
    border-left: 4px solid #b8942a;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.card-dolor strong {
    color: #b8942a;
    display: block;
    margin-bottom: 5px;
}

.card-dolor svg {
    width: 32px;
    height: 32px;
    color: #b8942a;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.card-dolor:hover svg {
    stroke: #b8942a;
    ;
    transform: scale(1.1);
}

.card-dolor:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #002349;
    color: white;
}

.card-servicio {
    background: #ffffff;
    color: #010310;
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
    border-top: 3px solid #b8942a;
}

.card-servicio:hover {
    transform: translateY(-5px);
}

.card-beneficio {
    background: #ffffff;
    color: #010310;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 3px solid #b8942a;
}

.card-servicio svg {
    width: 36px;
    height: 36px;
    stroke: #b8942a;
    margin-bottom: 15px;
}

.card-servicio:hover svg {
    transform: scale(1.15);
    stroke: #002349;
}

.cierre {
    text-align: center;
}

.cta-final {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, #EDEDED 0%, #f8f8f8 100%);
}

.cta-text {
    font-size: 1.2rem;
    margin-top: 10px;
}

.cta-sub {
    margin: 10px 0 25px;
    opacity: 0.8;
}

.cta-proof {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.cta {
    display: inline-block;
    background: linear-gradient(135deg, #b8942a, #d4af37);
    color: #010310;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(184, 148, 42, 0.3);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(184, 148, 42, 0.5);
    background: linear-gradient(135deg, #d4af37, #b8942a);
}

.cta:active {
    transform: scale(0.98);
}

.solution {
    background: linear-gradient(180deg, #edededa8 0%, #f7f7f7 100%);
    text-align: center;
}

.solution-box {
    max-width: 800px;
    margin: auto;
}

.solution h2 {
    margin-bottom: 15px;
}

.highlight {
    font-size: 1.4rem;
    font-weight: 600;
    color: #b8942a;
    margin-bottom: 20px;
}

.solution-text {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

.break {
    background: linear-gradient(135deg, #020830, #044085);
    color: #ffffff;
    text-align: center;
}

.break h2 {
    color: var(--text-inverse);
}

.break p {
    /* color: var(--gradient-tech); */
    margin-bottom: 20px;
}

.section-white-grid {
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(2, 8, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 8, 48, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    /* Tamaño del cuadrito */
}

.section-blue-grid {
    background-color: var(--color-primary-dark);
    background-image:
        linear-gradient(rgba(228, 229, 236, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 217, 224, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    /* Tamaño del cuadrito */
}

.section-divider {
    width: 100%;
    line-height: 0;
}

.section-divider svg {
    width: 100%;
    height: 40px;
}

.section-divider path {
    fill: #EDEDED;
    /* color de la siguiente sección */
}

.section-wave {
    position: relative;
}

.section-wave::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;

    background: radial-gradient(circle at 50% -20px, transparent 60px, #EDEDED 61px);
}

/* =================7. SECCION NOSOTROS O ABOUT US ================= */

.about {
    background: linear-gradient(180deg, var(--color-bg) 0%, #f7f9fc 100%);
    position: relative;
}

/* HEADER (TÍTULO CENTRADO) */
.about-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 60px;
}

.about-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.about-header span {
    color: var(--color-accent);
}

/* GRID PRINCIPAL */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* IZQUIERDA (IMAGEN + STATS) */
.about-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* IMAGEN */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* EFECTO GLOW SUAVE */
.about-image::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: rgba(184, 148, 42, 0.15);
    filter: blur(70px);
    z-index: 0;
}

/* BADGE EXPERIENCIA */
.image-badge {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: var(--color-accent);
    color: var(--text-inverse);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* STATS */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat {
    background: var(--color-surface);
    backdrop-filter: blur(10px);

    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;

    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* DERECHA (CONTENIDO) */
.about-content {
    display: flex;
    flex-direction: column;
}

/* LEAD */
.lead {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* TEXTO NORMAL */
.about-content p {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* MINI PROOF */
.mini-proof {
    margin-top: 10px;
    padding-left: 12px;
    border-left: 3px solid var(--color-accent);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* HIGHLIGHTS */
.about-highlights {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-highlights div {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 0.95rem;
    color: var(--text-main);

    padding: 1px 16px;
    border-radius: var(--radius-sm);

    background: rgba(184, 148, 42, 0.08);
    border: 1px solid rgba(184, 148, 42, 0.15);
    backdrop-filter: blur(6px);

    border-left: 3px solid transparent;

    transition: all var(--transition-base);
    height: 105px;
}

.about-highlights div:hover {
    border-left: 3px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}



/* ANIMACIÓN SCROLL */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* =================8. SERVICIOS COMPLETOS Y DETALLE ================= */
/* ── Services ──────────────────────────────────────────────────── */
.page-hero {
    /* background: linear-gradient(270deg, #010310, #02152b, #0a2540); */
    /* background: linear-gradient(270deg, #020617, #071a2c, #0a3d62, #005073); */
    background: linear-gradient(270deg, #010310, #0d1b2a, #1b263b, #415a77);
    background-size: 600% 600%;
    animation: gradientMove 12s ease infinite;
    color: white;
    padding: 80px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.page-hero {
    margin-top: 2px;
}

.page-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 148, 42, 0.25), transparent);
    filter: blur(120px);
    animation: glowMove 10s ease-in-out infinite alternate;
}

@keyframes glowMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, 50px);
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /* MÁGICO: will-change prepara la GPU y evitamos recalcular layout */
    will-change: transform; 
    animation: floatParticle linear infinite;
    /* Evita que las partículas capturen clicks del usuario */
    pointer-events: none;
}

@keyframes floatParticle {
    0% {
        /* Usamos translate3d para forzar aceleración de hardware */
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Ajusta estos valores según el movimiento que quieras */
        transform: translate3d(20px, -100px, 0);
    }
}

.page-hero .container {
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #EDEDED);
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-hero p {
    color: #aaa;
    max-width: 600px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.service-card {
    /* background: rgba(255, 255, 255, 0.75); */
    background: linear-gradient(180deg, #0a1a2f 0%, #02152b 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 35, 73, 0.08);
    /* box-shadow: var(--shadow-md); */
    padding: 32px;
    /* border-radius: var(--radius-lg); */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    /* transition: var(--transition-base); */
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;

    background: radial-gradient(circle at top left,
            rgba(184, 148, 42, 0.25),
            transparent 60%);

    opacity: 0.6;
    pointer-events: none;
}


.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #b8942a;
    color: #02152b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(184, 148, 42, 0.15), rgba(184, 148, 42, 0.05));
    border: 1px solid rgba(184, 148, 42, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    background: var(--gradient-accent);
    color: white;
}

.service-icon i {
    font-size: 22px;
    color: #0c0c0c;
    line-height: 1;
}


.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-surface);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-bg);
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.features-list li {
    font-size: 0.9rem;
    color: var(--color-bg);
    margin-bottom: 10px;

    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.features-list li::before {
    content: "•";
    color: var(--color-accent);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}

.btn-service {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    margin-top: auto;
}

.btn-service span {
    transition: transform 0.3s;
}

.btn-service:hover {
    color: var(--color-accent);
}

.btn-service:hover span {
    transform: translateX(6px);
}


.cta-block {
    /* background: linear-gradient(135deg, #02152b 0%, #0a2540 100%); */
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.cta-block::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(184, 148, 42, 0.2), transparent);
    filter: blur(100px);
}

.cta-block::after {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, transparent, #EDEDED);
}



.cta-box {
    max-width: 600px;
    margin: auto;
}

.cta-box h2 {
    font-size: 2rem;
    margin: 15px 0;
}

.cta-box p {
    color: #ccc;
    margin-bottom: 25px;
}

.cta-primary {
    background: #b8942a;
    color: #02152b;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

/* Solo el párrafo que esté DENTRO de section-header */
.section-header p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    /* Esto evita que el texto se vea muy largo y aburrido */
    display: block;
    /* Nos aseguramos de que se comporte como bloque para que el margin auto funcione */
}

/* --- REDISEÑO TOTAL: DETALLE DE SERVICIO --- */

.sd-nav-top {
    margin-bottom: 30px;
    /* Espacio antes de que empiecen las cards */
    display: flex;
    justify-content: flex-start;
}

.btn-back-services {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-blue);
    /* Tu azul corporativo */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.btn-back-services i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-back-services:hover {
    color: var(--color-accent);
    /* El dorado en el hover */
    border-bottom: 2px solid var(--color-accent);
}

.btn-back-services:hover i {
    transform: translateX(-5px);
    /* El efecto de "retroceso" visual */
}

.sd-hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #02152b 0%, #0A3D62 100%);
    position: relative;
    text-align: center;
    border-bottom: 4px solid #DEB520;
}

/* El icono ahora brilla */
.sd-icon-box {
    width: 90px;
    height: 90px;
    background: rgba(222, 181, 32, 0.1);
    border: 2px solid #DEB520;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #DEB520;
    font-size: 2.5rem;
    box-shadow: 0 0 30px rgba(222, 181, 32, 0.2);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(222, 181, 32, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(222, 181, 32, 0.4);
    }

    100% {
        box-shadow: 0 0 20px rgba(222, 181, 32, 0.2);
    }
}

/* Cuerpo de la página */
.sd-content {
    background: #f4f7f9;
    padding: 80px 0;
}

/* Contenedor principal de info (Elevado) */
.sd-info {
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(10, 61, 98, 0.05);
}

.sd-eyebrow {
    background: rgba(222, 181, 32, 0.1);
    color: #DEB520;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 1px solid rgba(222, 181, 32, 0.2);
}

.sd-description-text {
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* El botón de acción ahora es un CALL TO ACTION real */
.btn-sd-action {
    display: inline-flex;
    /* Cambiado de flex a inline-flex para que no ocupe todo el ancho */
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-blue);
    /* Volvemos al azul sólido premium */
    color: white !important;
    padding: 14px 28px;
    /* Tamaño más balanceado */
    border-radius: 8px;
    /* Menos redondeado, más estilo Enterprise */
    font-size: 1rem;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(222, 181, 32, 0.2);
    box-shadow: 0 4px 15px rgba(10, 61, 98, 0.2);
}

.btn-sd-action:hover {
    transform: translateY(-2px);
    background: var(--color-accent);
    color: #02152b !important;
    border-color: #DEB520;
    box-shadow: 0 8px 20px rgba(222, 181, 32, 0.3);
}

.btn-sd-action i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-sd-action:hover i {
    transform: translateX(3px);
    /* Pequeño empuje visual */
}

/* Sidebar con Vida */
.sd-feature-card {
    background: #0A3D62;
    /* Fondo oscuro para que resalte la lista */
    color: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(10, 61, 98, 0.2);
    margin-bottom: 30px;
    margin-top: 30px;
}

.sd-feature-card h3 {
    color: #DEB520;
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-features-list li {
    padding: 15px 0 15px 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
}

.sd-features-list li::before {
    content: "\f058";
    /* Icono FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-accent);

    margin-right: 20px;
    /* <--- Cambia este número para alejarlos más o menos */
    margin-top: 1px;
    /* Para centrarlo con la primera línea de texto */
    display: inline-block;
}

/* Otros servicios: Estilo Neumórfico / Glass */
.sd-related-box h4 {
    margin-bottom: 20px;
    color: #0A3D62;
    padding-left: 10px;
}

.sd-related-item {
    background: white;
    border: 2px solid transparent;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.sd-related-item:hover {
    border-color: #DEB520;
    transform: translateX(10px);
}



/* =================9. PROYECTOS GENERALES Y DETALLE ================= */

/* 1. Filtros (Tabs) */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    background: #f1f4f8;
    border: 1px solid rgba(10, 61, 98, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    color: #0A3D62;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab.active,
.filter-tab:hover {
    background: #0A3D62;
    color: #DEB520;
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.2);
    transform: translateY(-2px);
}

/* 2. Card de Proyecto */
.project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(10, 61, 98, 0.1);
    border-color: rgba(222, 181, 32, 0.3);
}

/* 3. Imagen y Overlay */
.project-img {
    position: relative;
    height: 220px;
    background: #02152b;
    /* Fondo para el placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.project-img img.img-real {
    object-position: center center;
}

.project-img img.img-default {
    object-position: center top;
}


.project-img-placeholder i {
    font-size: 4rem;
    color: rgba(222, 181, 32, 0.2);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    /* Un degradado muy suave que solo oscurece la base */
    background: linear-gradient(to top, rgba(2, 21, 43, 0.85) 0%, rgba(2, 21, 43, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Transición más lenta y suave */
    backdrop-filter: blur(1px);
    /* Desenfoque casi imperceptible */
    -webkit-backdrop-filter: blur(1px);
    z-index: 2;
}

.project-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Ya no sale desde abajo, está ahí */
    opacity: 0;
    transition: all 0.4s ease;
    /* Suavizado */

    /* Estilo Cristal Minimalista */
    background: rgba(255, 255, 255, 0.1) !important;
    /* Casi transparente */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    color: #ffffff !important;
    /* Texto blanco suave */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Borde muy fino */

    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none;
    /* Quitamos mayúsculas agresivas */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Sombra muy tenue */
    white-space: nowrap;
    z-index: 5;
}

/* 3. Hover del Proyecto (Aparición suave) */
.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay-btn {
    opacity: 1;
    /* Mantenemos la posición para que no sea brusco */
}

/* 4. Hover del Botón (Aquí es donde brilla el Dorado de TotalSys) */
.project-overlay-btn:hover {
    background: #DEB520 !important;
    /* Dorado sólido solo al tocarlo */
    color: #02152b !important;
    /* Texto oscuro para contraste */
    border-color: #DEB520 !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
    /* Ligera escala */
    box-shadow: 0 10px 25px rgba(222, 181, 32, 0.3);
    /* Glow dorado sutil */
}



/* 4. Cuerpo de la Card */
.project-body {
    padding: 25px;
}

.project-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.project-body h3 {
    font-size: 1.3rem;
    color: #0A3D62;
    margin-bottom: 10px;
}

/* 5. Etiquetas de Tecnología */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    font-size: 0.75rem;
    background: #f8fafc;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    /* Toque "code" */
}

/* Sección reducida para no opacar el portafolio */
.section-slim {
    padding: 40px 0 80px;
    /* Menos espacio arriba, aire abajo */
}

.cta-banner {
    background: #02152b;
    /* Azul profundo del manual */
    background: linear-gradient(90deg, #02152b 0%, #0a2540 100%);
    border-radius: 16px;
    padding: 35px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Separa texto de botón */
    gap: 30px;
    border-left: 4px solid #DEB520;
    /* Detalle dorado sutil */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    color: #ffffff;
    font-size: 1.6rem;
    /* Más pequeño para no gritar */
    margin: 0;
    font-weight: 700;
}

.cta-tag {
    color: #DEB520;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0;
    font-size: 0.95rem;
}

/* Botón más estilizado y menos pesado */
.btn-gold-slim {
    background: #DEB520;
    color: #02152b;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-gold-slim:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 181, 32, 0.2);
}

/*GALERIA */
/* --- GALERÍA ESTÁTICA TIPO CARRUSEL --- */
.project-evidence-section {
    margin-top: 80px;      /* Espacio generoso con los Resultados */
    padding-bottom: 40px;  /* Espacio antes del botón final */
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Línea sutil divisoria */
    padding-top: 40px;     /* Espacio después de la línea */
}

.project-evidence-section h2 {
    margin-bottom: 25px;   /* Despega el título de las imágenes */
}

.evidence-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Scroll horizontal melo */
    padding: 20px 5px;
    scrollbar-width: thin;
    scrollbar-color: #DEB520 #f0f0f0;
    -webkit-overflow-scrolling: touch; /* Suavidad en móviles */
}

.evidence-card {
    flex: 0 0 280px; /* Ancho controlado */
    height: 180px;   /* Altura controlada */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    cursor: default; /* Sin manito, indicando que no hay clic */
    transition: transform 0.3s ease; /* Mantenemos el levante suave */
}

.evidence-card:hover {
    transform: translateY(-5px); /* Un pequeño levante para dar vida */
}

.evidence-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cero deformaciones */
    pointer-events: none; /* Evita que arrastren la imagen con el mouse */
}

/* Scrollbar para Chrome y navegadores modernos */
.evidence-wrapper::-webkit-scrollbar { 
    height: 8px; 
}

.evidence-wrapper::-webkit-scrollbar-thumb { 
    background: #DEB520; 
    border-radius: 10px; 
}

.evidence-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

/* Responsive: en móvil vuelve a ser vertical */
@media (max-width: 992px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }
}

/* --- DETALLE DE PROYECTO (ESTILO TOTALSYS) --- */

.project-client-tag {
    color: var(--color-accent);
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 10px;
    font-size: var(--fs-base);
}

/* Ajuste del bloque de información para el rompimiento */
.sd-info .project-story {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-title-sm {
    color: var(--brand-blue);
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title-sm::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
}

.content-text {
    color: var(--color-text-muted);
    line-height: var(--lh-base);
    font-size: var(--fs-base);
}

/* Ficha de Tecnologías en Sidebar */
.tech-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}

/* Resultados Box (Dentro de la card blanca) */
.project-results-box {
    background: var(--color-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
}

/* Reutilizamos el estilo de relacionados de servicios */
.sd-related-item small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 800;
    margin-bottom: 4px;
}


/* =================10. MI BLOG Y SUS DETALLES ================= */

.blog-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xl);
    /* Muy redondeado como pediste */
    padding: 6px 6px 6px var(--space-md);
    width: 100%;
    max-width: 450px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-md);
}

.search-form input.form-control {
    border: none !important;
    outline: none !important;
    padding: 0;
    margin: 0;
    flex: 1;
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--text-main);
}

.search-form button {
    background: var(--brand-blue);
    color: var(--text-inverse);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-form button:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

/* Tabs de Categorías */
.filter-tabs {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--brand-blue);
    color: var(--text-inverse);
    border-color: var(--brand-blue);
}

/* --- 2. GRID Y CARDS --- */
.blog-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.featured-post {
    grid-column: 1 / -1;
    /* Ocupa todo arriba */
    flex-direction: row;
    min-height: 380px;
    align-items: stretch;
}

.featured-post .blog-img {
    width: 38%;
    height: auto;
}

.featured-post .blog-body {
    width: 62%;
    padding: var(--space-lg);
    justify-content: center;
}

/* IMAGEN */
.blog-img {
    height: 200px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.blog-title a {
    color: var(--brand-blue);
    text-decoration: none;
}

.blog-excerpt {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    margin-bottom: var(--space-md);
}

/* Botón Leer Más con Vida */
.btn-link {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition-fast);
}

.btn-link i {
    transition: transform var(--transition-fast);
}

.btn-link:hover {
    color: var(--brand-blue);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* --- 4. METADATOS Y LÍNEA SEPARADORA --- */
.blog-meta {
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    /* Línea clara/traslúcida */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--brand-gold);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    /* Cambia el puntero a un círculo tachado */
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

/* =========================================
   📄 VISTA DETALLE DEL ARTÍCULO
   ========================================= */

.post-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    align-items: start;
}

/* --- CABECERA --- */
.post-header {
    margin-bottom: var(--space-lg);
}

.post-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    line-height: 1.1;
    color: var(--brand-blue);
    margin: var(--space-sm) 0;
    letter-spacing: var(--ls-heading);
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.post-meta-top i {
    color: var(--color-accent);
}

/* --- CUERPO --- */
.post-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: var(--lh-base);
    color: var(--color-text);
}

.post-content p {
    margin-bottom: var(--space-md);
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    color: var(--brand-blue);
    margin-top: var(--space-lg);
}

/* --- TAGS Y COMPARTIR --- */
.post-footer-tags {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.tech-tag-label {
    color: var(--color-text-muted);
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 8px;
}

.share-box {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.share-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
}

.share-buttons-grid {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.share-buttons-grid .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: #FFFFFF !important;
}

/* --- COMENTARIOS --- */
.comments-section {
    margin-top: var(--space-xl);
}

.comment-card {
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border-left: 4px solid var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-blue);
}

.comment-date {
    color: var(--color-text-muted);
}

/* Formulario */
.comment-form-box {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.comment-textarea {
    width: 100%;
    min-height: 180px;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-family: var(--font-body);
    margin-bottom: var(--space-md);
}

.btn-submit-comment {
    background: var(--brand-blue);
    color: #FFFFFF !important;
    border: none;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-base);
}

.btn-submit-comment:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* --- SIDEBAR --- */
.sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-card.cta-dark {
    background: var(--color-primary-dark);
    border: none;
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sidebar-cta-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn-sidebar-cta {
    background: var(--color-accent);
    color: var(--text-inverse);
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.related-link {
    display: block;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

.related-link .r-title {
    color: var(--brand-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
}

.related-link:hover .r-title {
    color: var(--color-accent);
}

/* --- Botones de Redes Sociales (Clases de Marca) --- */
.btn-whatsapp {
    background-color: #25D366 !important;
    color: #FFFFFF !important;
}

.btn-linkedin {
    background-color: #0077B5 !important;
    color: #FFFFFF !important;
}

.btn-x {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* Efecto hover sutil para todos los botones de compartir */
.share-buttons-grid .btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =================11. SECCION CONTACTO ================= */

.page-hero.hero-contact-special {
    /* Fondo oscuro base */
    background-color: #041026;
    /* Textura de Grid (Cuadrícula técnica) */
    background-image: radial-gradient(circle at 80% 20%,
            rgba(222, 181, 32, 0.12) 0%,
            rgba(4, 16, 38, 1) 60%);

    padding: 130px 0 110px;
    color: #FFFFFF !important;
    position: relative;
    border-bottom: none;
    /* Quitamos el borde plano */

    /* La Ola: Crea una curva orgánica al final */
    clip-path: ellipse(150% 100% at 50% 0%);
}

/* Un toque de luz radial para que no se vea plano */
.page-hero.hero-contact-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(222, 181, 32, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Efecto de profundidad opcional (un brillo sutil) */
.page-hero.hero-contact-special::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* El Breadcrumb vestido */
.hero-contact-special .contact-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hero-contact-special .contact-breadcrumb a {
    color: var(--color-accent);
    /* El dorado en los links */
    text-decoration: none;
    font-weight: 700;
}

.hero-contact-special .contact-breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

/* Título imponente (H1) */
.hero-contact-special h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    /* Efecto de degradado en el texto para más nivel */
    background: linear-gradient(to right, #fff 20%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

/* Párrafo con estilo */
.hero-contact-special p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 650px;
    border-left: 3px solid var(--color-accent);
    /* Una línea dorada vertical de acento */
    padding-left: 20px;
}

/* Layout General */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: start;
}

/* Breadcrumb Limpio */
.contact-breadcrumb {
    background: none;
    border: none;
    margin-bottom: var(--space-md);
    padding: 0;
    font-size: var(--fs-sm);
}

.contact-breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Formulario */
.contact-form-title {
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-family: var(--font-heading);
}

.contact-form-subtitle {
    margin-bottom: 32px;
    color: var(--color-text-muted);
}

.form-privacy-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.form-privacy-note a {
    color: var(--brand-blue);
    font-weight: 700;
}

/* Botón Full Width */
.btn-contact-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: var(--fs-base);
    font-weight: 700;
    text-transform: uppercase;
}

/* Lista de Información de Contacto */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 15px;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.contact-info-item:hover {
    background: #ffffff;
    transform: translateX(12px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.contact-info-item:hover .info-icon-box {
    background: var(--brand-blue);
    color: #ffffff;
    transform: rotate(-8deg) scale(1.1);
}

/* Color de las etiquetas en hover */
.contact-info-item:hover .info-content-label {
    color: var(--color-accent);
}

.info-icon-box {
    width: 44px;
    height: 44px;
    background: var(--color-accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.info-content-value {
    font-size: 0.95rem;
    color: var(--color-text);
}

.info-content-value a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-content-value a:hover {
    color: var(--brand-blue);
}

/* Calendly / Card Especial */
.card-highlight {
    padding: 28px;
    background: var(--color-accent-soft);
    border: 1px solid var(--brand-blue);
    border-style: dashed;
}

.card-highlight h4 {
    margin-bottom: 8px;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Estilos de los campos del formulario */
#contact-form .form-group {
    margin-bottom: var(--space-md);
}

#contact-form .form-label {
    display: block;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

#contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
    color: var(--color-text);
}

/* El "Corazón": Efecto de foco profesional */
#contact-form .form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    /* El dorado de TotalSys */
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

/* Área de texto con cuerpo */
#contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Grilla del formulario para que no esté desalineado */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* Botón con presencia */
.btn-contact-submit {
    background: var(--brand-blue);
    color: var(--text-inverse);
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-base);
}

.btn-contact-submit:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Clase para el input cuando falla */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* El texto de error que aparece abajo */
.error-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* =================12. FAQS PREGUNTAS FRECUENTES ================= */


.faq-unified-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

/* El Ítem (La tarjeta con el diseño que te gusta) */
.faq-item {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.faq-item:hover {
    background: #121212;
    border-color: rgba(222, 181, 32, 0.4);
    transform: translateY(-2px);
}

/* Disparador y Pregunta */
.faq-trigger {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    padding-right: 20px;
    letter-spacing: 0.3px;
}

/* Icono Dinámico (Cruz Dorada) */
.faq-icon-wrapper {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.faq-icon-line {
    width: 100%;
    height: 2px;
    background-color: #DEB520;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.4s ease;
}

.faq-icon-line::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: inherit;
    position: absolute;
    transform: rotate(90deg);
    transition: all 0.4s ease;
}

/* Contenido de la Respuesta (Animación suave) */
.faq-content-wrapper {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-content {
    padding: 0 28px 28px 28px;
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 1rem;
}

/* ESTADOS ACTIVOS (Lo que hace que funcione el script) */
.faq-item.is-active {
    background: #141414;
    border-color: #DEB520;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.faq-item.is-active .faq-question {
    color: #DEB520;
}

.faq-item.is-active .faq-icon-wrapper {
    transform: rotate(45deg);
}

.faq-item.is-active .faq-icon-line::after {
    background-color: #ffffff;
}

.faq-item.is-active .faq-content-wrapper {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
}

/* --- Agregados para la vista FAQ General (Sin tocar lo anterior) --- */
.faq-group {
    margin-bottom: 60px;
}

.faq-group-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-group-icon {
    color: #DEB520;
    font-size: 1.5rem;
}

.faq-group-title {
    margin: 0;
    font-size: 1.6rem;
    color: #fff;
}

.faq-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Estilos del CTA Final --- */
.faq-cta-section {
    padding: 100px 0;
    /* Mantenemos la altura que te gustó */
    /* background: #080808; */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* border-top: none; 
    clip-path: ellipse(150% 100% at 50% 100%);
    margin-top: -50px;  */
}

.cta-card {
    background: linear-gradient(145deg, #0d0d0d, #121212);
    border: 1px solid rgba(222, 181, 32, 0.2);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.cta-card .eyebrow {
    color: #DEB520;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.cta-card h2 {
    font-size: 2.5rem;
    color: #ffffff;
    /* Blanco puro */
    margin-bottom: 20px;
}

.cta-card p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #b0b0b0;
    /* Gris claro legible */
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-total-gold {
    background: #DEB520;
    color: #000 !important;
    font-weight: 700;
    padding: 16px 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-total-wa {
    border: 1px solid #25D366;
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.05);
    padding: 16px 35px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =================13. MI ADN VISUAL-VARIABLES ================= */
/* =================14. PAGINACION Y VARIOS ================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    /* Sustituye a var(--radius-sm) */
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e2e8f0;
    /* Sustituye a var(--gray-200) */
    color: #64748b;
    /* Sustituye a var(--gray-600) */
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    border-color: #0A3D62;
    color: #0A3D62;
}

.pagination .page-link.active {
    background: #0A3D62;
    /* Navy TotalSys */
    border-color: #0A3D62;
    color: #ffffff;
}


.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.pagination .active {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: var(--white);
}

/* ── 404 / Error Pages ──────────────────────────────────────── */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    color: var(--blue-100);
    line-height: 1;
}

.error-page h2 {
    color: var(--blue-900);
    margin-bottom: 12px;
}

.error-page p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

/* ── Animations ─────────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
    transition-delay: 0.3s;
}
/* ── SECCIÓN TESTIMONIOS TOTALSYS ────────────────────────────── */

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

/* El "Eyebrow" - Lo que dicen nuestros clientes */
.section-header .eyebrow {
    display: block;
    color: #957C3D; /* Tu Oro Mate - ¡Ahora sí se ve! */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-family: var(--font-display); /* O la que uses para títulos */
}

/* El Título Principal - Resultados que generan confianza */
.section-header h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* Una línea decorativa sutil bajo el título */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #957C3D; /* Acento en Oro */
    border-radius: 2px;
}

.section-dark {
    background-color: #0A192F; 
    padding: 80px 0;
}

.grid-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 34px;
    border-radius: 16px; /* Ajustado a tu var(--radius-lg) */
    background: rgba(30, 41, 59, 0.7); /* Slate con transparencia */
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Para que todas midan lo mismo en el grid */
    will-change: transform;
    backface-visibility: hidden;
}

/* Efecto de luz dorada sutil al hacer hover */
.testimonial-card::before {
    content: '';
    position: absolute; 
    inset: 0;
    background: linear-gradient(135deg, rgba(149, 124, 61, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(149, 124, 61, 0.4); /* Tu Matte Gold */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-card:hover::before { 
    opacity: 1; 
}

/* Estrellas en tu Oro Mate */
.testimonial-stars {
    color: #957C3D; 
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
    user-select: none;
}

.testimonial-content {
    font-size: 1rem; 
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85); /* Mejorado para legibilidad */
    margin-bottom: 30px;
    font-style: italic;
    position: relative; 
    z-index: 1;
    flex-grow: 1; /* Empuja el autor hacia abajo si el texto es corto */
}

/* Comilla decorativa estilizada */
.testimonial-content::before {
    content: '“';
    font-size: 4.5rem;
    color: #957C3D;
    opacity: 0.25;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: "Georgia", serif;
    line-height: 1;
    z-index: -1;
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: relative; 
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Avatar con el gradiente corporativo Azure */
.author-avatar {
    width: 46px; 
    height: 46px; 
    border-radius: 50%;
    background: linear-gradient(135deg, #0A3D62, #1E293B); /* Navy a Slate */
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 700;
    color: #FFFFFF; 
    font-size: 1.1rem; 
    flex-shrink: 0;
    border: 1px solid rgba(149, 124, 61, 0.3); /* Borde oro sutil */
}

.author-name { 
    font-weight: 700; 
    color: #FFFFFF; 
    font-size: 1rem;
    margin: 0;
}

.author-role { 
    font-size: 0.8rem; 
    color: rgba(255, 255, 255, 0.6); /* Contrato optimizado para Accesibilidad */
    margin-top: 3px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   TOTALSYS SOLUTIONS - RESPONSIVE LAYER (ADD TO END)
   ========================================================================== */

@media (max-width: 1024px) {

    /* 1. Ajuste de Contenedores Globales */
    .container {
        padding-inline: 20px !important;
    }

    /* 2. Hero Section - Mobile First Adjust */
    .hero-container {
        grid-template-columns: 1fr !important;
        /* Apilado vertical */
        gap: 3rem !important;
        text-align: center;
    }

    .hero-text-side {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    /* 3. Header & Navegación (Hamburguesa manual) */
    .header-container {
        padding: var(--space-sm) var(--space-sm) !important;
    }

    .menu-toggle {
        display: block !important;
        /* Aparece el icono de menú */
    }

    .main-nav {
        display: none;
        /* Ocultar por defecto, requiere toggle de clase 'active' */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-primary);
        padding: 20px;
        border-bottom: 2px solid var(--color-accent);
    }

    .main-nav.active {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 4. Footer - Ajuste de Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    /* 5. Sección Nosotros (About) */
    .about-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .about-header {
        margin-bottom: 30px !important;
    }

    .about-highlights div {
        height: auto !important;
        /* Evita que el texto se corte en móvil */
        padding: 15px !important;
    }
}

@media (max-width: 768px) {

    /* 6. Servicios - De 1 a 2 columnas según espacio */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .service-card {
        padding: 20px !important;
    }

    /* 7. Footer en Celulares (1 columna) */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-desc {
        margin: 15px auto !important;
    }

    .contact-list li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* 8. Botones Flotantes (WhatsApp y ScrollTop) */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .scroll-top {
        bottom: 75px;
        right: 20px;
    }
}

/* 9. Fix de Tipografía para pantallas pequeñas */
@media (max-width: 480px) {
    :root {
        --fs-3xl: 2.2rem;
        --fs-2xl: 1.8rem;
    }

    .hero-title-mid {
        font-size: 1.3rem !important;
    }

    .btn-cta-primary {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

/* 10. Fix de Tablas si las tienes en el Home */
.table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   FIX MENU MOBILE - TOTALSYS SOLUTIONS
   ========================================================================== */

/* ==========================================================================
   FIX TOTAL: HEADER RESPONSIVE SIN CHOQUES
   ========================================================================== */

@media (max-width: 1024px) {
    /* 1. Ajustar el Header para que no se amontone */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px !important;
        height: 70px;
    }

    /* 2. El Logo debe hacerse un poco más pequeño para dar espacio */
    .logo {
        width: 130px !important;
        height: auto;
    }

    /* 3. OCULTAR el botón de contacto que está fuera del UL en móvil */
    /* (Para que no choque con la hamburguesa como en tu foto) */
    .header-container > .btn-header { 
        display: none !important; 
    }

    /* 4. POSICIONAR LA HAMBURGUESA CORRECTAMENTE */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1300; /* Por encima de todo */
        position: relative;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-accent); /* Tu Dorado */
        border-radius: 3px;
        transition: 0.3s;
    }

    /* 5. EL MENÚ (Ahora sí, limpio y a pantalla completa) */
    .main-nav {
        position: fixed !important;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-primary) !important;
        z-index: 1200;
        display: flex !important;
        align-items: center;
        justify-content: center;
        
        /* Estado inicial: Fuera de pantalla */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center;
    }

    .main-nav .nav-link {
        font-size: 1.5rem !important;
        color: white !important;
    }
}

/* ==========================================================================
   APILADO VERTICAL - PROYECTOS Y FAQ
   ========================================================================== */

@media (max-width: 1024px) {
    /* 1. SECCIÓN PROYECTOS: Forzar botones de filtro a columnas */
    .filter-buttons, 
    .project-filters,
    .filter-tabs {
        display: flex !important;
        flex-direction: column !important; /* Aquí es donde se apilan */
        width: 100% !important;
        gap: 10px !important;
        padding: 0 15px;
    }

    .filter-buttons button,
    .project-filters .btn-filter {
        width: 100% !important; /* Botones de ancho completo */
        text-align: center;
    }

    /* 2. SECCIÓN FAQ: Forzar que las preguntas ocupen todo el ancho */
    .faq-grid, 
    .faq-container,
    .accordion-container {
        display: flex !important;
        flex-direction: column !important; /* Si era grid de 2 columnas, ahora es 1 */
        gap: 15px !important;
        width: 100% !important;
    }

    .faq-item {
        width: 100% !important;
    }

    /* 3. AJUSTE DE TÍTULOS EN SECCIONES */
    .section-header h2 {
        font-size: 1.8rem !important; /* Para que el título no se vea gigante en móvil */
        margin-bottom: 25px !important;
    }
}
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
}