/* ================================================
   GRAMAR INDUSTRIAL GROUP — Stylesheet
   ================================================ */

:root {
    --navy:       #001F5B;
    --blue-dark:  #0057D9;
    --blue:       #007BFF;
    --blue-light: #3AA0FF;
    --white:      #FFFFFF;
    --black:      #000000;
    --bg-hero:    #06090f;
    --bg-dark:    #000d2e;
    --gray-100:   #f4f7fc;
    --gray-200:   #e4ecf7;
    --text-dark:  #0a0e1a;
    --text-body:  #3d4a6b;
    --text-muted: #6b7a9e;

    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;

    --radius:    12px;
    --radius-lg: 20px;
    --shadow:    0 4px 24px rgba(0,31,91,0.10);
    --shadow-lg: 0 12px 48px rgba(0,31,91,0.18);
    --transition: all 0.3s ease;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(0,123,255,0.09);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,123,255,0.2);
}

.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(0,87,217,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,87,217,0.5); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; border-radius: 10px; }

.btn-full { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; border-radius: 10px; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.4rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,31,91,0.1);
    box-shadow: 0 2px 16px rgba(0,31,91,0.07);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 32px rgba(0,31,91,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo { display: flex; align-items: center; }

.nav-logo img {
    height: 82px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover img { opacity: 0.85; transform: scale(1.02); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: 7px;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--navy); background: rgba(0,31,91,0.06); }

.nav-actions { display: flex; align-items: center; gap: 0.85rem; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.lang-flag-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0.2rem 0.25rem;
    cursor: pointer;
    opacity: 0.35;
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
}
.lang-flag-btn .fi {
    width: 1.7rem;
    height: 1.25rem;
    border-radius: 3px;
    display: block;
}
.lang-flag-btn.active {
    opacity: 1;
    border-color: var(--blue);
}
.lang-flag-btn:hover { opacity: 0.75; }
.lang-flag-btn.active:hover { opacity: 1; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    background: var(--bg-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 75% at 80% 50%, rgba(0,87,217,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 5% 80%, rgba(0,31,91,0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(58,160,255,0.08) 0%, transparent 50%),
        linear-gradient(90deg, rgba(4,8,22,0.93) 0%, rgba(4,8,22,0.78) 50%, rgba(2,8,28,0.5) 100%);
}

/* Video de fondo del hero (queda debajo de .hero-bg, que actúa como velo) */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(circle, rgba(58,160,255,0.5) 1.5px, transparent 1.5px),
        linear-gradient(rgba(0,87,217,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,87,217,0.09) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0,87,217,0.04) 1px, transparent 1px),
        linear-gradient(-135deg, rgba(0,87,217,0.04) 1px, transparent 1px);
    background-size:
        48px 48px,
        48px 48px,
        48px 48px,
        68px 68px,
        68px 68px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
}

.hero-text { max-width: 780px; }

.hero-disciplines {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-also {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(58,160,255,0.5);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-light);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(58,160,255,0.3);
    border-radius: 100px;
    background: rgba(58,160,255,0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.0;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.68);
    margin-bottom: 2rem;
    line-height: 1.75;
    font-weight: 400;
    max-width: 620px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.trust-item i { color: var(--blue-light); font-size: 0.75rem; }

/* Hero image */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-img-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,123,255,0.3);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-img-frame:hover .hero-img { transform: scale(1.03); }

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-img-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(0,13,46,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(58,160,255,0.35);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--white);
}

.hero-img-badge i {
    font-size: 1.5rem;
    color: var(--blue-light);
}

.hero-img-badge span {
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollAnim 2.2s ease infinite;
}

@keyframes scrollAnim {
    0%   { transform: scaleY(0); transform-origin: top; }
    49%  { transform: scaleY(1); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ STATS STRIP ============ */
.stats-strip {
    background: linear-gradient(135deg, #0057D9 0%, #001F5B 100%);
    padding: 2.5rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item { text-align: center; color: var(--white); }

.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1rem;
    margin-bottom: 0.3rem;
}

.stat-number { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-suffix { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--blue-light); }
.stat-icon { font-size: 2rem; color: var(--blue-light); }
.stat-label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.72); font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.18); flex-shrink: 0; }

/* ============ SERVICES ============ */
.services { padding: 6rem 0; background: var(--gray-100); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Tarjeta principal (personal técnico): ancho completo, imagen a la izquierda */
.services-grid .service-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.services-grid .service-card.featured .service-img { flex: 0 0 44%; height: auto; min-height: 360px; }
.services-grid .service-card.featured .service-body { padding: 2.5rem; }
.services-grid .service-card.featured .service-body h3 { font-size: 1.8rem; }
.services-grid .service-card.featured .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    flex: 0 1 auto;
}
.services-grid .service-card.featured .service-link { align-self: flex-start; }
.services-grid .service-card.featured .service-badge {
    position: static;
    align-self: flex-start;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.services-direct-label {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.services-direct-label::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card.featured {
    background: linear-gradient(160deg, var(--navy) 0%, #001030 100%);
    border-color: rgba(0,123,255,0.3);
}

.service-badge {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

/* Service image at top */
.service-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img { transform: scale(1.06); }

.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,31,91,0.3) 0%,
        rgba(0,10,40,0.6) 100%
    );
}

.service-card.featured .service-img-overlay {
    background: linear-gradient(to bottom, rgba(0,31,91,0.5) 0%, rgba(0,5,20,0.75) 100%);
}

/* Body of the service card */
.service-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.service-card.featured .service-body { position: relative; }

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,87,217,0.12), rgba(58,160,255,0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0,123,255,0.18);
    flex-shrink: 0;
}

.service-card.featured .service-icon {
    background: rgba(255,255,255,0.1);
    color: var(--blue-light);
    border-color: rgba(255,255,255,0.12);
}

.service-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card.featured .service-body h3 { color: var(--white); }

.service-body > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-card.featured .service-body > p { color: rgba(255,255,255,0.65); }

.service-list { flex: 1; margin-bottom: 1.5rem; }

.service-list-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 0.4rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.87rem;
    padding: 0.42rem 0;
    color: var(--text-body);
    border-bottom: 1px solid var(--gray-200);
}

.service-card.featured .service-list li { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.08); }

.service-list li i { color: var(--blue); font-size: 0.7rem; flex-shrink: 0; }
.service-card.featured .service-list li i { color: var(--blue-light); }

/* .service-link — estilos movidos a sección BUTTON WHATSAPP + SERVICE LINK más abajo */

/* ============ WHY US ============ */
.why-us { padding: 6rem 0; background: var(--white); }

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-content .section-title { text-align: left; margin-bottom: 1rem; }
.why-content > p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.75; }

.why-items { display: flex; flex-direction: column; gap: 1.4rem; }

.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }

.why-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,87,217,0.09), rgba(58,160,255,0.09));
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 1.05rem;
    border: 1px solid rgba(0,123,255,0.14);
}

.why-item h4 { font-weight: 700; font-size: 0.97rem; margin-bottom: 0.2rem; color: var(--text-dark); }
.why-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.why-visual { display: flex; flex-direction: column; gap: 1rem; }

/* Main image in Why section */
.why-main-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-main-img video,
.why-main-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.why-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,31,91,0.55) 0%,
        rgba(0,87,217,0.15) 60%,
        rgba(0,0,0,0.2) 100%
    );
}

.why-stat-badge {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: rgba(0,13,46,0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(58,160,255,0.35);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    text-align: center;
    color: var(--white);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.badge-number sup { font-size: 1.1rem; }

.badge-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    margin-top: 0.2rem;
    line-height: 1.3;
}

.why-cards-small { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.why-card-sm {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: 0.7rem;
    font-weight: 600; font-size: 0.88rem;
    color: var(--navy);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.why-card-sm:hover {
    background: rgba(0,87,217,0.06);
    border-color: rgba(0,123,255,0.2);
    transform: translateY(-2px);
}

.why-card-sm i { font-size: 1.1rem; color: var(--blue); flex-shrink: 0; }

/* ============ INDUSTRIES ============ */
.industries { padding: 6rem 0; background: var(--bg-dark); }

.industries .section-tag { color: var(--blue-light); background: rgba(58,160,255,0.1); border-color: rgba(58,160,255,0.22); }
.industries .section-title { color: var(--white); }
.industries .section-subtitle { color: rgba(255,255,255,0.55); }

.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.industry-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.industry-card:hover {
    background: rgba(0,123,255,0.14);
    border-color: rgba(0,123,255,0.38);
    transform: translateY(-4px);
}

.industry-card i { font-size: 1.9rem; color: var(--blue-light); display: block; margin-bottom: 0.75rem; }
.industry-card span { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.82); display: block; }

/* ============ CONTACT ============ */
.contact-cta { padding: 6rem 0; background: var(--gray-100); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 5rem; align-items: start; }

.contact-info .section-title { text-align: left; }
.contact-info > p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-item { display: flex; align-items: center; gap: 0.9rem; color: var(--text-body); font-size: 0.93rem; }

.contact-item i {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,87,217,0.1), rgba(58,160,255,0.1));
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 0.88rem; flex-shrink: 0;
    border: 1px solid rgba(0,123,255,0.14);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

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

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }

.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text-dark); }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.93rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; }

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a9e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============ FOOTER ============ */
.footer { background: #04060d; padding: 4.5rem 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-wrap { margin-bottom: 1rem; }

.footer-logo {
    height: 85px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-brand p { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; max-width: 270px; }

.social-links { display: flex; gap: 0.65rem; }

.social-links a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.social-links a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); transform: translateY(-2px); }

.footer-links h4,
.footer-contact h4 { color: var(--white); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.25rem; letter-spacing: 0.04em; }

.footer-links ul li { margin-bottom: 0.65rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-light); }

.footer-contact p { display: flex; align-items: center; gap: 0.65rem; font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 0.8rem; }
.footer-contact i { color: var(--blue-light); width: 14px; flex-shrink: 0; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0;
    font-size: 0.82rem; color: rgba(255,255,255,0.35);
    flex-wrap: wrap; gap: 0.5rem;
}

/* ============ BANNER DE COOKIES ============ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    background: #04060d;
    border-top: 2px solid var(--blue-mid);
    padding: 1.1rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 220px;
}

.cookie-text i { color: var(--blue-light); font-size: 1.2rem; flex-shrink: 0; }
.cookie-text p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.55; margin: 0; }

.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }

.btn-cookie-reject {
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: rgba(255,255,255,0.65);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn-cookie-accept {
    padding: 0.55rem 1.25rem;
    background: var(--blue-mid);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cookie-accept:hover { background: var(--blue-light); }

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: waPulse 2.5s infinite;
}

.whatsapp-float i { font-size: 1.5rem; line-height: 1; }

.whatsapp-tooltip {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.whatsapp-float:hover .whatsapp-tooltip {
    max-width: 120px;
    opacity: 1;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ============ BUTTON WHATSAPP ============ */
.btn-wa {
    background: #25D366;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-wa i { font-size: 1.1rem; }
.btn-wa:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    color: #fff;
}

/* ============ SERVICE LINK (mejorado como botón) ============ */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--blue);
    background: rgba(0,123,255,0.07);
    border: 1px solid rgba(0,123,255,0.2);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
}
.service-link:hover {
    background: rgba(0,123,255,0.14);
    border-color: rgba(0,123,255,0.4);
    gap: 0.75rem;
}
.service-card.featured .service-link {
    color: var(--blue-light);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}
.service-card.featured .service-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}

/* ============ SERVICE CARD (fix position para badge) ============ */
.service-card { position: relative; }

/* ============ PROBLEMS ============ */
.problems { padding: 5rem 0; background: var(--white); }

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.problem-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
    cursor: default;
}
.problem-card:hover {
    background: rgba(0,87,217,0.06);
    border-color: rgba(0,123,255,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.problem-card i { font-size: 1.2rem; color: var(--blue); flex-shrink: 0; width: 28px; }
.problem-card span { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); }

/* ============ PROCESS ============ */
.process { padding: 5rem 0; background: var(--gray-100); }

.process-scene { position: relative; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    transition: box-shadow 0.4s ease, transform 0.3s ease, border-top-color 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.process-step:hover {
    box-shadow: 0 8px 32px rgba(0,31,91,0.12);
    transform: translateY(-4px);
    border-top-color: var(--blue-light);
}

/* Tarjeta activa por animación JS */
.process-step.step-active {
    border-top-color: #3AA0FF;
    box-shadow: 0 6px 28px rgba(58,160,255,0.18), 0 0 0 1px rgba(58,160,255,0.1);
    transform: translateY(-2px);
}
.process-step.step-active .step-icon {
    background: linear-gradient(135deg, rgba(0,87,217,0.18), rgba(58,160,255,0.18));
    border-color: rgba(58,160,255,0.42);
    color: #3AA0FF;
}

/* Conector flecha entre pasos */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.55rem;
    right: -1.125rem;
    width: 12px;
    height: 12px;
    border-top: 2px solid rgba(58,160,255,0.55);
    border-right: 2px solid rgba(58,160,255,0.55);
    transform: rotate(45deg);
    z-index: 2;
}

/* Línea de escaneo */
.step-scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3AA0FF 30%, #8dd8ff 60%, transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}
.step-scan-line.scanning {
    animation: scanDown 0.75s ease-out forwards;
}
@keyframes scanDown {
    0%   { top: 0;    opacity: 1; }
    80%  { top: 90%;  opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
}

.step-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,87,217,0.09), rgba(58,160,255,0.09));
    border: 1px solid rgba(0,123,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}
.process-step:hover .step-icon {
    background: linear-gradient(135deg, rgba(0,87,217,0.15), rgba(58,160,255,0.15));
    border-color: rgba(0,123,255,0.28);
    color: var(--blue-dark);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.step-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
}
.step-content p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Conveyor Rail ---- */
.conveyor-rail {
    margin-top: 1rem;
    height: 52px;
    position: relative;
}

.conveyor-belt {
    position: absolute;
    left: 0;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    background: linear-gradient(90deg, #0b1a3d 0%, #0d2366 50%, #0b1a3d 100%);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.18);
}

/* Textura de movimiento de rodillos */
.conveyor-belt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 28px,
        rgba(255,255,255,0.04) 28px,
        rgba(255,255,255,0.04) 30px
    );
    animation: beltMove 1.6s linear infinite;
}
@keyframes beltMove {
    from { transform: translateX(0); }
    to   { transform: translateX(30px); }
}

/* Pulso que recorre la banda */
.conveyor-pulse {
    position: absolute;
    top: 50%;
    left: 12.5%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 15%, #3AA0FF 55%, transparent 100%);
    box-shadow: 0 0 14px 5px rgba(58,160,255,0.75), 0 0 4px rgba(255,255,255,0.85);
    transition: left 0.6s cubic-bezier(0.45, 0, 0.3, 1);
    z-index: 2;
    animation: pulseGlow 1.3s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 14px 5px rgba(58,160,255,0.7),  0 0 4px rgba(255,255,255,0.8); }
    50%       { box-shadow: 0 0 22px 8px rgba(58,160,255,0.95), 0 0 7px rgba(255,255,255,1);   }
}

/* Nodos de posición sobre la banda */
.conveyor-nodes {
    position: absolute;
    left: 0;
    right: 58px;
    top: 0; bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 3;
}
.conveyor-node {
    display: flex;
    align-items: center;
    justify-content: center;
}
.conveyor-node::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(58,160,255,0.18);
    border: 1px solid rgba(58,160,255,0.35);
    transition: all 0.35s ease;
}
.conveyor-node.node-active::before {
    background: #3AA0FF;
    box-shadow: 0 0 8px rgba(58,160,255,0.9), 0 0 3px #fff;
    border-color: rgba(255,255,255,0.5);
}

/* Brazo robótico */
.robot-arm-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52px;
    height: 88px;
}
.robot-arm-svg { width: 100%; height: 100%; }

.robot-effector {
    animation: robotScan 2.5s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: 10px 20px;
}
@keyframes robotScan {
    0%, 100% { transform: translateY(0)   rotate(0deg);  }
    40%       { transform: translateY(4px) rotate(-6deg); }
    75%       { transform: translateY(-2px) rotate(4deg); }
}

.scan-beam {
    animation: beamFade 2.5s ease-in-out infinite;
}
@keyframes beamFade {
    0%, 100% { opacity: 0.15; }
    40%       { opacity: 0.9;  }
    75%       { opacity: 0.35; }
}

/* Segmentos de hover */
.conveyor-segments {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 1;
    pointer-events: none;
}

.conveyor-segment {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.conveyor-segment.seg-hover {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(58, 160, 255, 0.18) 30%,
        rgba(58, 160, 255, 0.28) 50%,
        rgba(58, 160, 255, 0.18) 70%,
        transparent 100%);
    box-shadow: 0 0 16px rgba(58, 160, 255, 0.35) inset;
    animation: segPulse 1.4s ease-in-out infinite;
}

@keyframes segPulse {
    0%   { opacity: 0.7; }
    50%  { opacity: 1;   }
    100% { opacity: 0.7; }
}


/* ============ CTA BANNER ============ */
.cta-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cta-banner-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.cta-banner-text p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.6; }

.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

.cta-banner .btn-outline {
    border-color: rgba(255,255,255,0.45);
    color: var(--white);
}
.cta-banner .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-inner { padding-top: 7rem; }
    .services-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .services-grid .service-card.featured { flex-direction: column; }
    .services-grid .service-card.featured .service-img { flex: none; height: 220px; min-height: 0; }
    .services-grid .service-card.featured .service-body { padding: 2rem; }
    .services-grid .service-card.featured .service-list { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed; inset: 0;
        background: #ffffff;
        flex-direction: column;
        justify-content: center; align-items: center;
        gap: 2rem; z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links.active a { font-size: 1.4rem; color: var(--navy); }
    .nav-actions .btn { display: none; }
    .hamburger { display: flex; }
    .hero-inner { padding-top: 7rem; }
    .hero-subtitle { max-width: 100%; }
    .stats-container { justify-content: center; gap: 1.5rem; }
    .stat-divider { display: none; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .why-cards-small { grid-template-columns: 1fr 1fr; }
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .conveyor-rail { display: none; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
    .cta-banner-actions { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { justify-content: center; }
    .hero-trust { flex-direction: column; gap: 0.5rem; }
    .industries-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-wrapper { padding: 1.75rem; }
    .nav-logo img { height: 66px; }
    .problems-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr; }
}


/* =====================================================
   BLOQUE 2 — secciones comerciales (2026-10)
   ===================================================== */
.section-header-wide { max-width: 880px; }
.section-cta { text-align: center; margin-top: 3rem; }

/* Chips reutilizables */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips span {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 100px;
    color: var(--blue-dark);
    background: rgba(0,87,217,0.07);
    border: 1px solid rgba(0,123,255,0.2);
}
.chip-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

/* ---- Problemas: escenarios con descripción ---- */
.problems-grid { max-width: 1100px; gap: 1.25rem; }
.problem-card { align-items: flex-start; padding: 1.5rem; }
.problem-card i { margin-top: 0.2rem; }
.problem-card strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.problem-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.problems-close {
    max-width: 760px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.6;
}

/* ---- Personal técnico: casos de uso (fondo oscuro) ---- */
.usecases { padding: 6rem 0; background: var(--bg-dark); }
.usecases .section-tag { color: var(--blue-light); background: rgba(58,160,255,0.1); border-color: rgba(58,160,255,0.22); }
.usecases .section-title { color: var(--white); }
.usecases .section-subtitle { color: rgba(255,255,255,0.6); }
.usecases-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
.usecases-col {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}
.usecases-col h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.usecases .chips span { color: rgba(255,255,255,0.85); background: rgba(58,160,255,0.1); border-color: rgba(58,160,255,0.28); }
.usecases .service-list { margin-bottom: 0; }
.usecases .service-list li { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.08); }
.usecases .service-list li i { color: var(--blue-light); }

/* ---- Capacidades técnicas ---- */
.capabilities { padding: 6rem 0; background: var(--gray-100); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cap-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
}
.cap-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.cap-card .service-list { margin-bottom: 0; }
.cap-card .service-list li:last-child { border-bottom: none; }
.cap-note {
    max-width: 760px;
    margin: 2.5rem auto 0;
    text-align: center;
    color: var(--text-body);
    font-size: 0.98rem;
    line-height: 1.65;
}
.capabilities .section-cta { margin-top: 2rem; }

/* ---- Servicios directos ---- */
.direct { padding: 6rem 0; background: var(--white); }
.direct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.direct-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.direct-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.direct-card > p { color: var(--text-body); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.direct-card .chips { margin-bottom: 1.75rem; }
.direct-card .service-link { margin-top: auto; }
.direct-compare {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 2.25rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy) 0%, #001030 100%);
}
.direct-compare p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.6; }
.direct-compare strong { color: var(--white); }

/* ---- Proceso: pestañas y panel de 5 pasos ---- */
.process .section-header { margin-bottom: 2rem; }
.proc-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.proc-tab {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--text-body);
    transition: var(--transition);
}
.proc-tab:hover { border-color: rgba(0,123,255,0.4); color: var(--blue-dark); }
.proc-tab.active {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    border-color: transparent;
    color: var(--white);
}
.proc-tab:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.process-steps[hidden] { display: none; }
.process-steps.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.process-steps.steps-5 .process-step { padding: 1.75rem 1.25rem; }
.process-steps.steps-5 .process-step:not(:last-child)::after { right: -1rem; }

/* ---- Industrias: dos destacadas + resto ---- */
.industries-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.industry-feature {
    background: linear-gradient(160deg, rgba(0,87,217,0.22) 0%, rgba(0,31,91,0.3) 100%);
    border: 1px solid rgba(58,160,255,0.3);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}
.industry-feature i { font-size: 2rem; color: var(--blue-light); margin-bottom: 1rem; display: block; }
.industry-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.industry-feature p { color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.7; }
.industries-also {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}
.industries-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.industries-grid .industry-card { flex: 0 1 calc(25% - 0.75rem); padding: 1.5rem 1rem; }

@media (max-width: 1024px) {
    .usecases-grid, .direct-grid, .direct-compare, .industries-featured { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps.steps-5 { grid-template-columns: repeat(2, 1fr); }
    .process-steps.steps-5 .process-step:not(:last-child)::after { display: none; }
    .industries-grid .industry-card { flex-basis: calc(33.333% - 0.67rem); }
}
@media (max-width: 768px) {
    .problems-grid { grid-template-columns: 1fr; }
    .usecases-col, .direct-card, .industry-feature { padding: 1.75rem; }
    .direct-compare { padding: 1.5rem 1.75rem; }
    .industries-grid .industry-card { flex-basis: calc(50% - 0.5rem); }
}
@media (max-width: 480px) {
    .problems-grid, .cap-grid, .process-steps.steps-5 { grid-template-columns: 1fr; }
}


/* =====================================================
   BLOQUE 3 — vida visual (lenguaje de automatización) + página de personal
   ===================================================== */

/* ---- Luz piloto en las etiquetas de sección ---- */
.section-tag::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 0.55rem;
    vertical-align: middle;
    background: #3AA0FF;
    box-shadow: 0 0 0 0 rgba(58,160,255,0.6);
    animation: pilotLamp 2.2s ease-out infinite;
}
@keyframes pilotLamp {
    0%   { box-shadow: 0 0 0 0 rgba(58,160,255,0.65); }
    70%  { box-shadow: 0 0 0 7px rgba(58,160,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(58,160,255,0); }
}

/* ---- Trazos de circuito con señales que viajan ---- */
.has-circuit { position: relative; overflow: hidden; }
.has-circuit > .container { position: relative; z-index: 1; }
.circuit-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.circuit-traces path { fill: none; stroke: rgba(58,160,255,0.13); stroke-width: 1.5; }
.circuit-nodes circle { fill: #06122e; stroke: rgba(58,160,255,0.55); stroke-width: 1.5; animation: nodeBlink 3.2s ease-in-out infinite; }
.circuit-nodes circle:nth-child(3n)   { animation-delay: 1.1s; }
.circuit-nodes circle:nth-child(3n+1) { animation-delay: 2.1s; }
@keyframes nodeBlink { 0%, 100% { fill: #06122e; } 50% { fill: #3AA0FF; } }
.circuit-signals path {
    fill: none;
    stroke: #6fc0ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 95;
    filter: drop-shadow(0 0 5px rgba(58,160,255,0.9));
    animation: signalRun 7s linear infinite;
}
.circuit-signals path:nth-child(2) { animation-duration: 9s;  animation-delay: -3s; }
.circuit-signals path:nth-child(3) { animation-duration: 8s;  animation-delay: -5s; }
.circuit-signals path:nth-child(4) { animation-duration: 10s; animation-delay: -1s; }
@keyframes signalRun { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---- Cinta de perfiles ---- */
.ticker {
    background: #030a1f;
    border-top: 1px solid rgba(58,160,255,0.18);
    border-bottom: 1px solid rgba(58,160,255,0.18);
    overflow: hidden;
    padding: 0.95rem 0;
}
.ticker-track { display: flex; width: max-content; animation: tickerMove 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-group span {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
    padding: 0 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.ticker-group span::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--blue-light);
    box-shadow: 0 0 8px rgba(58,160,255,0.9);
    margin-left: 1.6rem;
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Gráfica: carga del proyecto vs. capacidad ---- */
.cap-chart {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 1.5rem 1.75rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--navy) 0%, #000d2e 100%);
    box-shadow: var(--shadow-lg);
}
.cap-chart figcaption {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 0.5rem;
}
.cap-chart svg { display: block; width: 100%; height: auto; }
.chart-grid line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.chart-team { stroke: rgba(255,255,255,0.6); stroke-width: 2; stroke-dasharray: 8 7; }
.chart-demand { stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; animation: chartDraw 9s ease-in-out infinite; }
.chart-area { animation: chartFill 9s ease-in-out infinite; }
.chart-dots circle { fill: #fff; animation: chartFill 9s ease-in-out infinite, dotPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.chart-dots circle:nth-child(2) { animation-delay: 0s, 0.3s; }
.chart-dots circle:nth-child(3) { animation-delay: 0s, 0.6s; }
.chart-lbl { font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 500; fill: rgba(255,255,255,0.7); }
.chart-lbl-gramar { fill: #ffffff; font-weight: 700; font-size: 17px; animation: chartFill 9s ease-in-out infinite; }
.chart-lbl-axis { font-size: 13px; fill: rgba(255,255,255,0.45); }
@keyframes chartDraw { 0% { stroke-dashoffset: 100; } 30%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes chartFill { 0%, 22% { opacity: 0; } 40%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

/* ---- Imágenes en tarjetas de capacidades y servicios directos (encuadres de las imágenes GRAMAR) ---- */
.cap-card, .direct-card { overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.cap-card:hover, .direct-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,123,255,0.35); }
.cap-img, .direct-img { position: relative; background-repeat: no-repeat; transition: background-size 0.6s ease; }
.cap-img::after, .direct-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,31,91,0.2), rgba(0,10,40,0.5)); }
.cap-img { height: 150px; margin: -1.75rem -1.5rem 1.5rem; }
.cap-img-1 { background-image: url('../assets/img/personal-tecnico.webp'); background-size: 190%; background-position: 12% 28%; }
.cap-img-2 { background-image: url('../assets/img/hero-personal.webp');    background-size: 230%; background-position: 78% 92%; }
.cap-img-3 { background-image: url('../assets/img/hero-personal.webp');    background-size: 210%; background-position: 14% 42%; }
.cap-img-4 { background-image: url('../assets/img/personal-tecnico.webp'); background-size: 210%; background-position: 22% 100%; }
.cap-card:hover .cap-img-1 { background-size: 200%; } .cap-card:hover .cap-img-2 { background-size: 240%; }
.cap-card:hover .cap-img-3 { background-size: 220%; } .cap-card:hover .cap-img-4 { background-size: 220%; }
.direct-img { height: 210px; align-self: stretch; margin: -2.25rem -2.25rem 1.75rem; }
.direct-img-1 { background-image: url('../assets/img/instalacion-electrica.webp');  background-size: 150%; background-position: 62% 70%; }
.direct-img-2 { background-image: url('../assets/img/estructuras-perfileria.webp'); background-size: 150%; background-position: 8% 45%; }
.direct-card:hover .direct-img { background-size: 158%; }

/* ---- Detalles de movimiento ---- */
.problem-card i, .industry-card i { transition: transform 0.35s ease; }
.problem-card:hover i, .industry-card:hover i { transform: scale(1.2); }
.industry-feature { transition: transform 0.3s ease, border-color 0.3s ease; }
.industry-feature:hover { transform: translateY(-5px); border-color: rgba(58,160,255,0.65); }
.industry-feature .fa-cogs { animation: gearTurn 9s linear infinite; }
@keyframes gearTurn { to { transform: rotate(360deg); } }
.industry-feature i { display: inline-block; }
.usecases .chips span { transition: var(--transition); }
.usecases .chips span:hover { background: rgba(58,160,255,0.28); border-color: var(--blue-light); transform: translateY(-2px); }

/* enlace secundario de la tarjeta principal */
.service-more {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.88rem; font-weight: 600;
    color: rgba(255,255,255,0.75);
}
.service-more:hover { color: var(--white); gap: 0.75rem; }
.section-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.nav-links a.nav-current { color: var(--blue-dark); font-weight: 700; }

/* ---- Formulario adaptable ---- */
.form-extra[hidden] { display: none; }
.form-extra { animation: extraIn 0.35s ease; }
@keyframes extraIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.form-hint { font-size: 0.86rem; color: var(--text-muted); margin: -0.25rem 0 1.25rem; display: flex; gap: 0.5rem; align-items: baseline; }
.form-hint i { color: var(--blue); }

/* ---- Página interior: cabecera ---- */
.page-hero {
    padding: 11rem 0 5rem;
    background:
        linear-gradient(90deg, rgba(4,8,22,0.97) 0%, rgba(4,8,22,0.9) 50%, rgba(2,8,28,0.55) 100%),
        url('../assets/img/hero-personal.webp') center 30% / cover no-repeat;
}
.page-hero .hero-title { max-width: 820px; }
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.crumbs a { color: var(--blue-light); } .crumbs span { margin: 0 0.25rem; }
.page-badge { position: static; display: inline-block; border-radius: 100px; margin-bottom: 1.25rem; }

/* qué es / qué no es */
.what { padding: 6rem 0; background: var(--white); }
.what-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center; }
.what-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.what-img img { width: 100%; height: 460px; object-fit: cover; display: block; }
.what-text .section-title { text-align: left; margin-bottom: 2rem; }
.what-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.what-col { background: var(--gray-100); border: 1px solid var(--gray-200); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 1.5rem; }
.what-col-not { border-top-color: var(--text-muted); }
.what-col h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--text-dark); }
.what-list li { display: flex; gap: 0.65rem; align-items: baseline; font-size: 0.92rem; color: var(--text-body); padding: 0.4rem 0; line-height: 1.5; }
.what-list li i { color: var(--blue); font-size: 0.75rem; flex-shrink: 0; }
.what-col-not .what-list li i { color: var(--text-muted); }

/* perfiles */
.profiles { padding: 6rem 0; background: var(--gray-100); }
.profiles-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.profile-card {
    flex: 0 1 calc(25% - 0.94rem);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,123,255,0.35); }
.profile-card:hover .service-icon { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); }
.profile-card .service-icon { transition: var(--transition); }
.profile-card h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.profile-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.chips-center { justify-content: center; max-width: 860px; margin: 0 auto; }

/* preguntas frecuentes */
.faq { padding: 6rem 0; background: var(--white); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-100); overflow: hidden; }
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 1.2rem 1.5rem;
    font-weight: 600; font-size: 1.02rem; color: var(--text-dark);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-heading); font-size: 1.6rem; line-height: 1; color: var(--blue); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: -2px; }
.faq-item p { padding: 0 1.5rem 1.35rem; color: var(--text-body); line-height: 1.7; font-size: 0.96rem; }

@media (max-width: 1024px) {
    .what-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .what-img img { height: 320px; }
    .profile-card { flex-basis: calc(50% - 0.63rem); }
}
@media (max-width: 768px) {
    .page-hero { padding: 8.5rem 0 3.5rem; }
    .what-cols { grid-template-columns: 1fr; }
    .direct-img { margin: -1.75rem -1.75rem 1.5rem; height: 180px; }
    .chart-lbl { font-size: 19px; } .chart-lbl-gramar { font-size: 21px; } .chart-lbl-axis { font-size: 17px; }
    .cap-chart { padding: 1.25rem 1rem 0.75rem; }
    .ticker-group span { font-size: 0.92rem; padding: 0 1rem; gap: 1rem; }
    .ticker-group span::after { margin-left: 1rem; }
}
@media (max-width: 480px) {
    .profile-card { flex-basis: 100%; }
}

/* Las tarjetas sobre fondo con circuito son opacas para que los trazos no crucen el texto */
.has-circuit .usecases-col,
.has-circuit .industry-card { background-color: rgba(8,18,46,0.94); }
.has-circuit .industry-feature { background-color: #06122e; }


/* =====================================================
   BLOQUE 4 — páginas interiores y submenú
   ===================================================== */

/* ---- Submenú de Servicios ---- */
.nav-links li.has-sub { position: relative; }
.nav-links li.has-sub > a i { font-size: 0.65em; margin-left: 0.25rem; transition: transform 0.25s ease; }
.nav-links li.has-sub:hover > a i { transform: rotate(180deg); }
.nav-sub {
    position: absolute; top: 100%; left: -1rem;
    min-width: 250px;
    padding: 0.5rem; margin: 0; list-style: none;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none; flex-direction: column;
    z-index: 1001;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { display: flex; }
.nav-sub a { display: block; padding: 0.65rem 0.9rem; border-radius: 8px; white-space: nowrap; }
.nav-sub a:hover { background: var(--gray-100); color: var(--blue-dark); }

/* ---- Botón claro y enlaces "ver más" ---- */
.btn-ghost { background: transparent; color: var(--blue-dark); border: 2px solid rgba(0,87,217,0.35); }
.btn-ghost:hover { background: rgba(0,87,217,0.07); border-color: var(--blue-dark); }
.why-more { margin-top: 2rem; }
.card-more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--blue-dark); }
.card-more:hover { gap: 0.75rem; }
.industries .section-cta { margin-top: 2.5rem; }

/* ---- Cabeceras de cada página ---- */
.page-hero--ie { background: linear-gradient(90deg, rgba(4,8,22,0.97) 0%, rgba(4,8,22,0.9) 50%, rgba(2,8,28,0.55) 100%), url('../assets/img/instalacion-electrica.webp') center 40% / cover no-repeat; }
.page-hero--pf { background: linear-gradient(90deg, rgba(4,8,22,0.97) 0%, rgba(4,8,22,0.9) 50%, rgba(2,8,28,0.55) 100%), url('../assets/img/estructuras-perfileria.webp') center / cover no-repeat; }
.page-hero--cp { background: linear-gradient(90deg, rgba(4,8,22,0.97) 0%, rgba(4,8,22,0.9) 50%, rgba(2,8,28,0.55) 100%), url('../assets/img/frame-robot.webp') center / cover no-repeat; }
.page-hero--in { background: linear-gradient(90deg, rgba(4,8,22,0.97) 0%, rgba(4,8,22,0.9) 50%, rgba(2,8,28,0.55) 100%), url('../assets/img/frame-celda.webp') center / cover no-repeat; }
.page-hero--ab { background: linear-gradient(90deg, rgba(4,8,22,0.97) 0%, rgba(4,8,22,0.9) 50%, rgba(2,8,28,0.55) 100%), url('../assets/img/hero-personal.webp') center 30% / cover no-repeat; }
.page-hero--ab .hero-title { font-size: clamp(2.1rem, 4.2vw, 3.6rem); max-width: 900px; }

/* ---- Mosaico de alcances ---- */
.scope { padding: 6rem 0; background: var(--gray-100); }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile {
    display: flex; align-items: center; gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    font-weight: 600; color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile i { font-size: 1.3rem; color: var(--blue); width: 30px; text-align: center; flex-shrink: 0; transition: transform 0.35s ease; }
.tile:hover i { transform: scale(1.2); }

/* ---- Sección imagen + texto ---- */
.split { padding: 6rem 0; background: var(--white); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.split-img:hover img { transform: scale(1.04); }
.split-text .section-title { text-align: left; margin: 0.75rem 0 1.25rem; }
.split-desc { color: var(--text-body); line-height: 1.75; margin-bottom: 1.1rem; }
.split-text .chips { margin: 0.5rem 0 1.75rem; }
.direct-compare-stack { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 0; }

/* ---- Disciplinas (página Capacidades) ---- */
.disciplines { padding: 6rem 0 5rem; background: var(--gray-100); }
.disc-row {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.75rem;
}
.disc-row:nth-child(even) .disc-img { order: 2; }
.disc-img { min-height: 340px; background-repeat: no-repeat; background-size: cover; }
.disc-img-1 { background-image: url('../assets/img/personal-tecnico.webp'); background-position: 20% 40%; }
.disc-img-2 { background-image: url('../assets/img/hero-personal.webp'); background-size: 190%; background-position: 82% 95%; }
.disc-img-3 { background-image: url('../assets/img/frame-pinza.webp'); background-position: center; }
.disc-img-4 { background-image: url('../assets/img/personal-tecnico.webp'); background-size: 200%; background-position: 20% 100%; }
.disc-text { padding: 2.5rem; }
.disc-text h2 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.75rem; }
.disc-text .service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; margin-bottom: 1.5rem; }

a.direct-link { text-decoration: none; }
a.direct-link .card-more { margin-top: auto; }

/* ---- Industrias: plantas ---- */
.plants { padding: 6rem 0; background: var(--gray-100); }
.plants-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.plant-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plant-card i { font-size: 1.7rem; color: var(--blue); margin-bottom: 1rem; display: block; }
.plant-card h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.plant-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.plants-more { margin-top: 2rem; }
.page-hero + .industries { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.page-hero + .industries .industries-featured { margin-bottom: 0; }

/* ---- Nosotros ---- */
.statement { padding: 6rem 0; background: var(--bg-dark); text-align: center; }
.statement-title { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; color: var(--white); line-height: 1.05; margin-bottom: 2rem; }
.statement-badge { display: inline-flex; align-items: center; gap: 1rem; padding: 0.9rem 1.75rem; border: 1px solid rgba(58,160,255,0.35); border-radius: var(--radius); background: rgba(0,13,46,0.85); color: rgba(255,255,255,0.85); }
.statement-badge .badge-number { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.values-grid .profile-card { flex-basis: calc(33.333% - 0.84rem); }
.why-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; max-width: 980px; margin: 0 auto; }

@media (max-width: 1024px) {
    .split-grid, .disc-row { grid-template-columns: 1fr; }
    .split-grid { gap: 2.5rem; }
    .disc-row:nth-child(even) .disc-img { order: 0; }
    .disc-img { min-height: 240px; }
    .tile-grid, .plants-grid { grid-template-columns: 1fr 1fr; }
    .values-grid .profile-card { flex-basis: 100%; }
}
@media (max-width: 768px) {
    .nav-links { gap: 1.4rem !important; }
    .nav-links.active .nav-sub { display: flex; position: static; border: none; box-shadow: none; background: none; padding: 0.75rem 0 0; align-items: center; gap: 0.6rem; }
    .nav-links.active .nav-sub a { font-size: 1.05rem; padding: 0; color: var(--text-muted); }
    .nav-links li { text-align: center; }
    .split-img img { height: 280px; }
    .disc-text { padding: 1.75rem; }
    .disc-text .service-list, .why-items-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tile-grid, .plants-grid { grid-template-columns: 1fr; }
}

.statement-badge .badge-label { font-size: 1rem; font-weight: 500; }

/* campo trampa contra robots: invisible para personas */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- Aviso de privacidad ---- */
.page-hero--plain { background: linear-gradient(135deg, #06090f 0%, var(--navy) 100%); padding-bottom: 3.5rem; }
.legal { padding: 4.5rem 0 6rem; background: var(--white); }
.legal-body { max-width: 820px; }
.legal-body h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 2.5rem 0 0.9rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-body); line-height: 1.8; font-size: 1rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-todo { background: #fff3bf; color: #7a4b00; padding: 0 0.3rem; border-radius: 3px; font-weight: 600; }
.form-privacy { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 1rem; }
.form-privacy a, .footer-bottom a, .cookie-link { text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a { color: var(--blue-dark); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--white); }
.cookie-link { color: var(--blue-light); font-size: 0.85rem; white-space: nowrap; margin-left: 0.75rem; }

/* correo de contacto armado por main.js */
.eml a { color: inherit; }
.eml a:hover { text-decoration: underline; }

/* ---- Página 404 ---- */
.notfound { padding-bottom: 6rem; }
.notfound-code { font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: rgba(58,160,255,0.35); margin-bottom: 0.5rem; }
