/**
 * NubeLogica — Sistema de diseño principal
 * Paleta: Navy #081834 | Naranja #f97316 | Neutros gris/blanco
 */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores base */
    --navy:          #081834;
    --navy-light:    #1e293b;
    --navy-muted:    #334155;
    --orange:        #f97316;
    --orange-dark:   #ea6c0a;
    --orange-light:  #fff7ed;

    /* Fondos */
    --bg-main:  #f8fafc;
    --bg-alt:   #f1f5f9;
    --white:    #ffffff;

    /* Texto */
    --text-base:  #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Bordes */
    --border:      #e2e8f0;
    --border-dark: #cbd5e1;

    /* Estados */
    --success: #10b981;
    --error:   #ef4444;

    /* Tipografía */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base-size: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    /* Espaciado */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 1.5rem;

    /* Bordes redondeados */
    --r-sm:   4px;
    --r-md:   8px;
    --r-lg:   12px;
    --r-xl:   16px;
    --r-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.08);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.10);
    --shadow-lg: 0 8px 24px rgba(15,23,42,0.14);

    /* Transición */
    --t: 0.2s ease;

    /* Z-index */
    --z-header:   1000;
    --z-dropdown: 1010;
    --z-float:    990;
}

/* ============================================
   RESET Y BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    font-size: var(--text-base-size);
    line-height: 1.7;
    color: var(--text-base);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--sp-20) 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--dark {
    background: var(--navy);
    color: var(--white);
}

.section__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-3);
}

.section__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: var(--sp-4);
}

.section__title--center {
    text-align: center;
}

.section__title--white {
    color: var(--white);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
}

.section__subtitle--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section__subtitle--white {
    color: rgba(255,255,255,0.72);
}

.section__head {
    margin-bottom: var(--sp-12);
}

.section__head--center {
    text-align: center;
}

.section__cta {
    margin-top: var(--sp-10);
    text-align: center;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base-size);
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--r-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.btn--secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn--lg {
    padding: 0.9rem 1.8rem;
    font-size: var(--text-lg);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    gap: var(--sp-8);
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.nav__logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
}

.nav__logo-text span {
    color: var(--orange);
}

/* Menu */
.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    font-size: var(--text-base-size);
    font-weight: 500;
    color: var(--text-base);
    transition: color var(--t);
    padding: var(--sp-2) 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--t);
}

.nav__link:hover,
.nav__link.active {
    color: var(--navy);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    border: 2px solid var(--orange);
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}

/* Dropdown */
.nav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: var(--sp-2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t);
    z-index: var(--z-dropdown);
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
}

.nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-base);
    transition: background var(--t), color var(--t);
}

.nav__dropdown-link:hover {
    background: var(--bg-alt);
    color: var(--navy);
}

.nav__dropdown-link--star {
    background: var(--orange-light);
    color: var(--orange-dark);
    font-weight: 600;
}

.nav__dropdown-link--star:hover {
    background: #fed7aa;
    color: var(--orange-dark);
}

/* Chevron icon */
.nav__chevron {
    width: 14px;
    height: 14px;
    transition: transform var(--t);
    flex-shrink: 0;
}

.nav__item:hover .nav__chevron {
    transform: rotate(180deg);
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--t);
    display: block;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--navy);
    padding: calc(var(--sp-20) + 72px) 0 var(--sp-20);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    color: #fb923c;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-full);
    margin-bottom: var(--sp-5);
}

.hero__title {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: var(--sp-5);
}

.hero__title span {
    color: var(--orange);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
    max-width: 540px;
}

.hero__cta {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   IMAGEN PLACEHOLDER
   ============================================ */
.img-placeholder {
    background: rgba(255,255,255,0.04);
    border: 1.5px dashed rgba(255,255,255,0.18);
    border-radius: var(--r-xl);
    padding: var(--sp-10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--sp-3);
    min-height: 300px;
    width: 100%;
}

.img-placeholder--light {
    background: var(--bg-alt);
    border-color: var(--border-dark);
}

.img-placeholder__icon {
    width: 48px;
    height: 48px;
    opacity: 0.35;
}

.img-placeholder__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

.img-placeholder--light .img-placeholder__label {
    color: var(--text-muted);
}

.img-placeholder__prompt {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.3);
    font-style: italic;
    max-width: 380px;
    line-height: 1.6;
    margin-top: var(--sp-1);
    padding: var(--sp-3);
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.08);
}

.img-placeholder--light .img-placeholder__prompt {
    color: var(--text-light);
    background: var(--white);
    border-color: var(--border);
}

/* ============================================
   SERVICIOS — Cards
   ============================================ */
.services {
    padding: var(--sp-20) 0;
    background: var(--bg-alt);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-12);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    transition: box-shadow var(--t), border-color var(--t);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

.service-card--star {
    border-color: var(--orange);
    background: linear-gradient(145deg, var(--white) 0%, var(--orange-light) 100%);
}

.service-card--star:hover {
    border-color: var(--orange-dark);
    box-shadow: 0 4px 20px rgba(249,115,22,0.18);
}

.service-card__badge {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    background: var(--orange);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card--star .service-card__icon {
    background: var(--orange);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.service-card__desc {
    font-size: var(--text-base-size);
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    transition: gap var(--t), color var(--t);
    margin-top: auto;
}

.service-card--star .service-card__link {
    color: var(--orange-dark);
}

.service-card__link:hover {
    gap: var(--sp-3);
}

.service-card__link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   POR QUÉ NUBELOGICA (Value Proposition)
   ============================================ */
.why {
    padding: var(--sp-20) 0;
    background: var(--white);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-12);
}

.why__item {
    padding: var(--sp-8);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow var(--t);
}

.why__item:hover {
    box-shadow: var(--shadow-md);
}

.why__number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--border-dark);
    line-height: 1;
    margin-bottom: var(--sp-4);
}

.why__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-3);
    line-height: 1.3;
}

.why__desc {
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================
   SISTEMAS MODULARES (sección landing)
   ============================================ */
.modular-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: start;
    margin-top: var(--sp-12);
}

.modular-layout__text {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.modular-layout__heading {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.modular-layout__text p {
    color: var(--text-muted);
    line-height: 1.75;
}

.modular-layout__callout {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-5) var(--sp-6);
    background: var(--navy);
    border-radius: var(--r-lg);
    margin-top: var(--sp-2);
}

.modular-layout__callout strong {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modular-layout__callout span {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

/* Etapas de crecimiento */
.modular-layout__stages {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.growth-stage {
    padding: var(--sp-5) var(--sp-6);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--white);
}

.growth-stage--active {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-light);
}

.growth-stage__label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.growth-stage--active .growth-stage__label {
    color: var(--orange-dark);
}

.growth-stage__modules {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.growth-module {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.growth-module--done {
    background: var(--orange-light);
    color: var(--orange-dark);
    border: 1px solid #fed7aa;
}

.growth-module--add {
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px dashed var(--border-dark);
}

.growth-stage__arrow {
    display: flex;
    justify-content: center;
    padding: var(--sp-1) 0;
    color: var(--border-dark);
}

.growth-stage__arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modular-section__note {
    margin-top: var(--sp-10);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--border);
}

/* ============================================
   CRM SPOTLIGHT (sección destacada navy)
   ============================================ */
.crm-spotlight {
    background: var(--navy);
    padding: var(--sp-20) 0;
}

.crm-spotlight__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
}

.crm-spotlight__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-4);
}

.crm-spotlight__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--sp-5);
}

.crm-spotlight__title span {
    color: var(--orange);
}

.crm-spotlight__desc {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
}

.crm-spotlight__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    padding: var(--sp-6);
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-xl);
    border: 1px solid rgba(255,255,255,0.08);
}

.crm-stat__number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: var(--sp-2);
}

.crm-stat__label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* ============================================
   PROCESO (timeline resumido)
   ============================================ */
.process {
    padding: var(--sp-20) 0;
    background: var(--bg-alt);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-12);
    position: relative;
}

.process__grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: var(--border-dark);
}

.process__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
    position: relative;
}

.process__num {
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg-alt);
}

.process__step-title {
    font-size: var(--text-base-size);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.process__step-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   CASOS / PROYECTOS
   ============================================ */
.cases {
    padding: var(--sp-20) 0;
    background: var(--white);
}

/* Carrusel de proyectos (index) */
.cases-carousel {
    position: relative;
    margin-top: var(--sp-12);
    --cases-gap: var(--sp-6);
}

.cases-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cases-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.cases-carousel__viewport:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.cases-carousel__track {
    display: flex;
    gap: var(--cases-gap);
    padding: var(--sp-2) 0 var(--sp-3);
}

.cases-carousel .case-card {
    flex: 0 0 var(--cases-card-width, 300px);
    scroll-snap-align: start;
    min-width: 0;
}

.cases-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), color var(--t), box-shadow var(--t), opacity var(--t);
}

.cases-carousel__btn:hover {
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cases-carousel__btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.cases-carousel__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.cases-carousel__btn--prev {
    left: var(--sp-2);
    transform: translateY(-50%);
}

.cases-carousel__btn--next {
    right: var(--sp-2);
    transform: translateY(-50%);
}

.cases-carousel__btn svg {
    width: 22px;
    height: 22px;
}

.case-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: box-shadow var(--t);
}

.case-card:hover {
    box-shadow: var(--shadow-md);
}

.case-card__img {
    background: var(--bg-alt);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card__body {
    padding: var(--sp-6);
}

.case-card__tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--orange-dark);
    background: var(--orange-light);
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    margin-bottom: var(--sp-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.case-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-2);
    line-height: 1.35;
}

.case-card__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: var(--sp-8);
    right: var(--sp-8);
    z-index: var(--z-float);
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.40);
    transition: transform var(--t), box-shadow var(--t);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.whatsapp-btn__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--navy);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--r-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
}

.whatsapp-btn:hover .whatsapp-btn__tooltip {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: var(--sp-16) 0 var(--sp-8);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-10);
    margin-bottom: var(--sp-12);
}

.footer__brand .nav__logo-text {
    color: var(--white);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: var(--sp-3);
    max-width: 260px;
}

.footer__col-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.55);
    transition: color var(--t);
}

.footer__link:hover {
    color: var(--orange);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.35);
}

/* ============================================
   PÁGINAS INTERNAS — Page Hero
   ============================================ */
.page-hero {
    background: var(--navy);
    padding: calc(var(--sp-16) + 72px) 0 var(--sp-16);
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.45);
}

.page-hero__breadcrumb a {
    color: rgba(255,255,255,0.45);
    transition: color var(--t);
}

.page-hero__breadcrumb a:hover {
    color: var(--orange);
}

.page-hero__breadcrumb span {
    color: rgba(255,255,255,0.25);
}

.page-hero__label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-3);
}

.page-hero__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--sp-5);
    max-width: 720px;
}

.page-hero__title span {
    color: var(--orange);
}

.page-hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: var(--sp-8);
}

.page-hero__cta {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* ============================================
   PÁGINA DE SERVICIO — Layout
   ============================================ */
.service-section {
    padding: var(--sp-20) 0;
}

.service-section--alt {
    background: var(--bg-alt);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse > * {
    direction: ltr;
}

.two-col__visual {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.two-col__visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.feature-item {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
}

.feature-item__icon {
    width: 24px;
    height: 24px;
    background: var(--orange);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item__icon svg {
    width: 13px;
    height: 13px;
    color: var(--white);
}

.feature-item__title {
    font-size: var(--text-base-size);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--sp-1);
}

.feature-item__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   TABLA COMPARATIVA (CRM)
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--sp-8);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table th {
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: center;
    background: var(--navy);
    color: var(--white);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table th.col--highlight {
    background: var(--orange);
    color: var(--white);
}

.comparison-table td {
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--text-sm);
    color: var(--text-base);
    text-align: center;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg-alt);
}

.comparison-table td.col--highlight {
    background: var(--orange-light);
    font-weight: 600;
    color: var(--navy);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--bg-alt);
}

.comparison-table tr:hover td:first-child {
    background: #e8ecf1;
}

.comparison-table tr:hover td.col--highlight {
    background: #fed7aa;
}

.check {
    color: var(--success);
    font-size: var(--text-lg);
}

.cross {
    color: var(--error);
    font-size: var(--text-lg);
}

/* ============================================
   MÓDULOS GRID (CRM)
   ============================================ */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-8);
}

.module-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    transition: box-shadow var(--t), border-color var(--t);
}

.module-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}

.module-card__icon {
    width: 40px;
    height: 40px;
    background: var(--orange-light);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}

.module-card__icon svg {
    width: 20px;
    height: 20px;
    color: var(--orange-dark);
}

.module-card__title {
    font-size: var(--text-base-size);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-2);
}

.module-card__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   FAQ ACORDEÓN
   ============================================ */
.faq {
    padding: var(--sp-20) 0;
    background: var(--bg-alt);
}

.faq__list {
    max-width: 800px;
    margin: var(--sp-10) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.faq__item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: var(--text-base-size);
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: background var(--t);
}

.faq__question:hover {
    background: var(--bg-alt);
}

.faq__question[aria-expanded="true"] {
    background: var(--orange-light);
}

.faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--orange);
    transition: transform var(--t);
}

.faq__question[aria-expanded="true"] .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 var(--sp-6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq__answer.open {
    padding: 0 var(--sp-6) var(--sp-5);
    max-height: 400px;
}

.faq__answer p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================
   CTA BLOCK (sección de conversión)
   ============================================ */
/* ============================================
   CTA PARALLAX (mid-page)
   ============================================ */
.cta-parallax {
    position: relative;
    padding: var(--sp-32) 0;
    background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1600&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    overflow: hidden;
    text-align: center;
}

.cta-parallax__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.72) 100%);
}

.cta-parallax__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: var(--sp-12) var(--sp-8);
}

.cta-parallax__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-5);
}

.cta-parallax__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--sp-5);
}

.cta-parallax__sub {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: var(--sp-8);
}

/* ============================================
   CTA BLOCK (final de página)
   ============================================ */
.cta-block {
    background: var(--navy);
    padding: var(--sp-16) 0;
    text-align: center;
}

.cta-block__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--sp-4);
    line-height: 1.25;
}

.cta-block__title span {
    color: var(--orange);
}

.cta-block__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--sp-8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.cta-block__actions {
    display: flex;
    gap: var(--sp-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SERVICIOS INDEX — Sub-nav
   ============================================ */
.service-subnav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.service-subnav__list {
    display: flex;
    gap: var(--sp-1);
    padding: var(--sp-3) 0;
    overflow-x: auto;
}

.service-subnav__link {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background var(--t), color var(--t);
}

.service-subnav__link:hover,
.service-subnav__link.active {
    background: var(--bg-alt);
    color: var(--navy);
}

.service-subnav__link--star {
    color: var(--orange-dark);
    font-weight: 600;
}

.service-subnav__link--star:hover,
.service-subnav__link--star.active {
    background: var(--orange-light);
    color: var(--orange-dark);
}

/* ============================================
   PROCESO — Página completa
   ============================================ */
.process-full {
    padding: var(--sp-20) 0;
    background: var(--white);
}

.process-full__timeline {
    max-width: 820px;
    margin: var(--sp-12) auto 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.process-full__timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.process-full__step {
    display: flex;
    gap: var(--sp-6);
    align-items: flex-start;
    position: relative;
}

.process-full__num {
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 4px solid var(--white);
}

.process-full__content {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}

.process-full__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-3);
}

.process-full__desc {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: var(--text-base-size);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
    padding: var(--sp-20) 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--sp-10);
    margin-top: var(--sp-10);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.contact-info__item {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info__icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.contact-info__label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-1);
}

.contact-info__value {
    font-size: var(--text-base-size);
    color: var(--text-muted);
}

.contact-info__value a {
    color: var(--orange-dark);
    font-weight: 500;
}

.contact-info__value a:hover {
    text-decoration: underline;
}

/* Formulario */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
}

.form-label span {
    color: var(--error);
}

.form-input {
    padding: 0.75rem var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: var(--text-base-size);
    font-family: var(--font);
    color: var(--text-base);
    background: var(--white);
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.form-input.error {
    border-color: var(--error);
}

.form-input--textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--error);
    display: none;
}

.form-error.show {
    display: block;
}

.form-message {
    padding: var(--sp-4);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    display: none;
}

.form-message.show {
    display: block;
}

.form-message--success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-message--error {
    background: #fef2f2;
    border: 1px solid var(--error);
    color: #7f1d1d;
}

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-8);
}

.about-value {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
}

.about-value__icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--sp-3);
}

.about-value__title {
    font-size: var(--text-base-size);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-2);
}

.about-value__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================
   UTILIDADES EXTRAS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge--orange {
    background: var(--orange-light);
    color: var(--orange-dark);
    border: 1px solid #fed7aa;
}

.badge--navy {
    background: rgba(15,23,42,0.08);
    color: var(--navy);
}

.badge--green {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.text-link {
    color: var(--orange-dark);
    font-weight: 600;
    transition: color var(--t);
}

.text-link:hover {
    color: var(--orange);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: var(--sp-10) 0;
}

/* Icon generic */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
