/* ==========================================================================
   EXERGÍA — Hoja de estilos única
   Todas las páginas cargan este archivo. Para cambiar colores, edita :root
   ========================================================================== */

/* ---------- 1. VARIABLES (edita aquí los colores de marca) ---------- */
:root {
    --azul-energia:    #234F73;
    --naranja-energia: #FF7A1A;
    --naranja-hover:   #ff8f3d;
    --gris-claro:      #F2F2F2;
    --blanco:          #FFFFFF;
    --texto-oscuro:    #1a1a1a;
    --texto-gris:      #666666;

    /* Fondo hexagonal y sus velos */
    --fondo-hex:   url('imagenes/fondo-hex.jpg') center / cover no-repeat;
    --velo-hero:   linear-gradient(135deg, rgba(13,26,52,0.72) 0%, rgba(8,16,34,0.84) 100%);
    --velo-banda:  linear-gradient(135deg, rgba(13,26,52,0.76) 0%, rgba(8,16,34,0.86) 100%);
    --velo-footer: linear-gradient(135deg, rgba(13,26,52,0.86) 0%, rgba(8,16,34,0.93) 100%);
}

/* ---------- 2. BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--texto-oscuro);
    line-height: 1.6;
    background: var(--blanco);
}

img, svg { max-width: 100%; }

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; color: var(--azul-energia); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--azul-energia); margin-bottom: 0.8rem; }
p  { color: var(--texto-gris); line-height: 1.8; margin-bottom: 1rem; }
li { color: var(--texto-gris); margin-bottom: 0.5rem; }

.container { max-width: 1400px; margin: 0 auto; padding: 80px 2rem; }

/* ---------- 3. HEADER Y NAVEGACIÓN ---------- */
header {
    background: var(--blanco);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(35, 79, 115, 0.12);
    border-bottom: 3px solid var(--naranja-energia);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header { height: 62px; object-fit: contain; display: block; }

nav { display: flex; gap: 2rem; align-items: center; }

nav a {
    color: var(--azul-energia);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--naranja-energia); }

nav .lang {
    display: flex;
    gap: 0.8rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(35, 79, 115, 0.25);
}
nav .lang a { font-size: 0.85rem; }
nav .lang a.active { color: var(--naranja-energia); }

/* Botón hamburguesa */
.menu-btn {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 0.5rem; line-height: 0;
}
.menu-btn span {
    display: block; width: 27px; height: 3px; border-radius: 2px;
    background: var(--azul-energia); margin: 5px 0; transition: 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 4. BOTONES ---------- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--naranja-energia);
    color: var(--blanco);
}
.btn:hover { background: var(--naranja-hover); }

.btn-primary { background: var(--naranja-energia); color: var(--blanco); }
.btn-primary:hover {
    background: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 122, 26, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--naranja-energia);
}
.btn-secondary:hover { background: var(--naranja-energia); color: var(--blanco); }

button.btn { width: 100%; padding: 1rem; }

/* ---------- 5. ICONOS SVG ---------- */
.icono { width: 68px; height: 68px; margin-bottom: 1.2rem; }
.icono svg { width: 100%; height: 100%; display: block; }

/* ---------- 6. HERO (portada) ---------- */
.hero {
    background: var(--velo-hero), var(--fondo-hex);
    color: var(--blanco);
    padding: 100px 2rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 10; max-width: 900px; }

.logo-hero-wrap {
    display: inline-block;
    background: var(--blanco);
    padding: 2.2rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.logo-hero { height: 210px; max-width: 100%; object-fit: contain; display: block; }

.hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.7rem);
    line-height: 1.25;
    margin: 0 auto 1.5rem;
    max-width: 900px;
    color: var(--blanco);
}
.hero h1 span { color: var(--naranja-energia); }

.hero p {
    font-size: 1.2rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 7. BANDA DE ENCABEZADO (páginas internas) ---------- */
.page-hero {
    background: var(--velo-banda), var(--fondo-hex);
    padding: 72px 2rem 62px;
    text-align: center;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 { color: var(--blanco); margin-bottom: 0.8rem; }
.page-hero p  { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; margin: 0; }

/* ---------- 8. EL PRINCIPIO DETRÁS DEL NOMBRE ---------- */
.principio {
    padding: 110px 2rem;
    background: var(--blanco);
    position: relative;
}
.principio::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 620px; height: 690px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(35, 79, 115, 0.028);
    pointer-events: none;
}

.principio-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.principio-eyebrow {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--naranja-energia);
    margin-bottom: 2.2rem;
}
.principio-eyebrow::after {
    content: '';
    display: block;
    width: 46px; height: 2px;
    background: var(--naranja-energia);
    margin: 0.9rem auto 0;
}

.principio p {
    font-size: 1.12rem;
    line-height: 1.9;
    color: var(--texto-gris);
    text-align: center;
    margin-bottom: 0;
}
.principio p strong { color: var(--azul-energia); font-weight: 600; }

.ecuacion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin: 3rem auto;
    padding: 2.4rem 2rem;
    max-width: 660px;
    background: linear-gradient(150deg, var(--azul-energia) 0%, #14293f 100%);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(35, 79, 115, 0.22);
}
.ecuacion .term {
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 600;
    color: var(--blanco);
}
.ecuacion .term.destacado {
    color: var(--naranja-energia);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.8vw, 1.85rem);
}
.ecuacion i {
    font-style: normal;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   9. CICLO DE VIDA DEL PROYECTO (rueda interactiva de 12 etapas)
   ========================================================================== */
.ciclo {
    padding: 90px 2rem;
    background: var(--gris-claro);
    overflow: hidden;
}

.ciclo-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}
.ciclo-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.ciclo-intro p { font-size: 1.1rem; margin-bottom: 0; }
.ciclo-intro .pista {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.2rem;
    padding: 0.6rem 1.3rem;
    border: 2px solid var(--naranja-energia);
    border-radius: 100px;
    color: var(--naranja-energia);
    font-weight: 600;
    font-size: 0.92rem;
}
.ciclo-intro .pista svg { width: 19px; height: 19px; flex: none; }

.ciclo-rueda {
    --radio: clamp(180px, 31vw, 292px);
    position: relative;
    width: min(780px, 94vw);
    aspect-ratio: 1;
    margin: 0 auto;
}

.ciclo-anillo {
    position: absolute;
    inset: 12%;
    border: 2px dashed rgba(35, 79, 115, 0.3);
    border-radius: 50%;
    animation: ciclo-girar 70s linear infinite;
}
.ciclo-anillo::after {
    content: '';
    position: absolute;
    inset: 7%;
    border: 1px dashed rgba(255, 122, 26, 0.28);
    border-radius: 50%;
}
@keyframes ciclo-girar { to { transform: rotate(360deg); } }

.ciclo-centro {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(168px, 25vw, 216px);
    aspect-ratio: 1 / 1.12;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(150deg, var(--azul-energia) 0%, #14293f 100%);
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1.1rem;
    z-index: 3;
}
.ciclo-centro span {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--naranja-energia);
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.ciclo-centro strong {
    font-size: clamp(1rem, 2.1vw, 1.3rem);
    font-weight: 700;
    line-height: 1.2;
}
.ciclo-centro em {
    font-style: normal;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.5rem;
}

.ciclo-nodo {
    position: absolute;
    top: 50%; left: 50%;
    width: 124px; height: 138px;
    margin: -69px 0 0 -62px;
    text-decoration: none;
    transform: rotate(calc(var(--i) * 30deg))
               translateY(calc(var(--radio) * -1))
               rotate(calc(var(--i) * -30deg));
    animation: ciclo-entrar 0.5s both;
    animation-delay: calc(var(--i) * 55ms);
    z-index: 2;
}
@keyframes ciclo-entrar {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ciclo-cara {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    padding: 0.7rem 0.5rem;
    text-align: center;
    background: var(--blanco);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 6px 18px rgba(35, 79, 115, 0.14);
    transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}
.ciclo-nodo b {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--naranja-energia);
    line-height: 1;
    margin-bottom: 0.3rem;
    transition: color 0.32s ease;
}
.ciclo-nodo em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--azul-energia);
    transition: color 0.32s ease;
}

.ciclo-nodo:hover .ciclo-cara,
.ciclo-nodo:focus-visible .ciclo-cara {
    background: var(--naranja-energia);
    transform: scale(1.16);
    box-shadow: 0 14px 30px rgba(255, 122, 26, 0.42);
}
.ciclo-nodo:hover b,
.ciclo-nodo:hover em,
.ciclo-nodo:focus-visible b,
.ciclo-nodo:focus-visible em { color: var(--blanco); }
.ciclo-nodo:focus-visible { outline: none; }
.ciclo-nodo:hover { z-index: 5; }

.ciclo-rueda:hover .ciclo-nodo:not(:hover) .ciclo-cara { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
    .ciclo-anillo { animation: none; }
    .ciclo-nodo { animation: none; }
    .ciclo-cara { transition: none; }
}

/* ---------- 10. PÁGINAS DE ETAPA (servicios/*.html) ---------- */
.etapa-tag {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(255, 122, 26, 0.6);
    border-radius: 100px;
    color: var(--naranja-energia);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.etapa-cuerpo { max-width: 860px; margin: 0 auto; }
.etapa-cuerpo h2 { margin: 2.6rem 0 1rem; }
.etapa-cuerpo h2:first-child { margin-top: 0; }
.etapa-cuerpo > p { font-size: 1.05rem; }

.lista-check { list-style: none; margin: 0 0 1rem; }
.lista-check li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    border-bottom: 1px solid rgba(35, 79, 115, 0.09);
}
.lista-check li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.15rem;
    width: 9px; height: 9px;
    background: var(--naranja-energia);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.valor-box {
    background: linear-gradient(150deg, var(--azul-energia) 0%, #14293f 100%);
    color: var(--blanco);
    border-radius: 12px;
    padding: 2.2rem;
    margin: 3rem 0;
    border-left: 5px solid var(--naranja-energia);
}
.valor-box h3 { color: var(--naranja-energia); margin-bottom: 0.8rem; }
.valor-box p { color: rgba(255, 255, 255, 0.92); margin-bottom: 0; font-size: 1.02rem; }

.etapa-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 3rem 0;
}
.etapa-nav-link {
    display: block;
    padding: 1.3rem 1.5rem;
    background: var(--gris-claro);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.etapa-nav-link:hover {
    background: var(--blanco);
    border-color: var(--naranja-energia);
    box-shadow: 0 8px 20px rgba(35, 79, 115, 0.1);
}
.etapa-nav-link span {
    display: block;
    font-size: 0.78rem;
    color: var(--naranja-energia);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.etapa-nav-link strong { color: var(--azul-energia); font-size: 1.02rem; }
.etapa-nav-link.derecha { text-align: right; }

.etapa-cta {
    background: var(--gris-claro);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    border-top: 4px solid var(--naranja-energia);
}
.etapa-cta h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }
.etapa-cta p { margin-bottom: 1.6rem; }

.volver { text-align: center; margin: 2.5rem 0 0; }
.volver a { color: var(--naranja-energia); text-decoration: none; font-weight: 600; }
.volver a:hover { text-decoration: underline; }

/* ---------- 11. SECCIONES DE PORTADA ---------- */
.servicios { padding: 80px 2rem; background: var(--blanco); }
.cadena-container, .servicios-container { max-width: 1400px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--azul-energia);
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.servicio-item {
    background: linear-gradient(135deg, var(--gris-claro) 0%, var(--blanco) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    border-left: 5px solid var(--naranja-energia);
    transition: all 0.3s ease;
}
.servicio-item:hover { transform: translateX(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.servicio-item h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.servicio-item p  { margin-bottom: 1.5rem; }
.servicio-item a {
    color: var(--naranja-energia);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}
.servicio-item a:hover { gap: 0.8rem; }

/* ---------- 12. PÁGINA CICLO DE VIDA (cadena-valor.html) ---------- */
.etapas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.etapa {
    display: block;
    background: linear-gradient(135deg, var(--gris-claro) 0%, var(--blanco) 100%);
    padding: 2.2rem;
    border-radius: 12px;
    border-left: 5px solid var(--naranja-energia);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.etapa:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(35, 79, 115, 0.16);
}
.etapa-num {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--naranja-energia);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.etapa h3 { margin-bottom: 0.7rem; }
.etapa p  { margin-bottom: 1rem; font-size: 0.94rem; }
.etapa-mas { color: var(--naranja-energia); font-weight: 600; font-size: 0.88rem; }

/* ---------- 13. PÁGINA SERVICIOS ---------- */
.servicio-section {
    background: var(--gris-claro);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 5px solid var(--naranja-energia);
}
.servicio-section h2 { margin: 0 0 1rem; }
.servicio-section h3 { color: var(--naranja-energia); font-size: 1.3rem; margin-top: 2rem; }
.servicio-section ul { margin-left: 2rem; margin-bottom: 1rem; }

/* ---------- 14. PÁGINA NOSOTROS ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}
.about-text h2 { margin-top: 0; }
.about-visual {
    background: linear-gradient(135deg, var(--azul-energia) 0%, #1a3a52 100%);
    color: var(--blanco);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}
.about-visual p { color: rgba(255, 255, 255, 0.92); }

.allies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.ally-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--naranja-energia);
}
.ally-card h3 { margin-bottom: 0.8rem; }
.ally-card p  { margin-bottom: 0; }

/* ---------- 15. PÁGINA CONTACTO ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }

.form-section { background: var(--gris-claro); padding: 2.5rem; border-radius: 12px; }
.form-section h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }

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

label { display: block; color: var(--azul-energia); font-weight: 600; margin-bottom: 0.5rem; }

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--texto-oscuro);
    background: var(--blanco);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--naranja-energia);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.1);
}
textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.info-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--naranja-energia);
}
.info-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.info-card a {
    color: var(--naranja-energia);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}
.info-card a:hover { text-decoration: underline; }
.info-card p { margin-bottom: 0; }

/* ---------- 16. FOOTER ---------- */
footer {
    background: var(--velo-footer), var(--fondo-hex);
    color: var(--blanco);
    padding: 3rem 2rem 1rem;
}

body.footer-simple footer { text-align: center; }
body.footer-simple footer p { color: rgba(255, 255, 255, 0.8); }

.footer-content {
    max-width: 1400px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-col h4 { color: var(--naranja-energia); margin-bottom: 1.2rem; font-weight: 600; }
.footer-col a, .footer-col p, .footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--naranja-energia); }
.footer-brand h3 { color: var(--naranja-energia); margin-bottom: 0.5rem; }

.footer-logo-wrap {
    display: inline-block;
    background: var(--blanco);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}
.footer-logo { height: 70px; object-fit: contain; display: block; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

/* --- Tablet horizontal / laptop chica --- */
@media (max-width: 1024px) {
    header { padding: 0.7rem 1.2rem; }
    .logo-header { height: 54px; }
    nav { gap: 1.3rem; }
    nav a { font-size: 0.88rem; }
    .container { padding: 60px 1.2rem; }
    .hero { padding: 80px 1.2rem; }
    .ciclo, .servicios { padding: 60px 1.2rem; }
}

/* --- Tablet vertical y celular --- */
@media (max-width: 900px) {
    .ciclo { padding: 56px 1.2rem; }
    .ciclo-intro { margin-bottom: 2.2rem; }
    .ciclo-intro p { font-size: 1rem; }

    .ciclo-rueda {
        width: 100%;
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.85rem;
    }
    .ciclo-anillo { display: none; }

    .ciclo-centro {
        position: static;
        transform: none;
        grid-column: 1 / -1;
        width: 100%;
        aspect-ratio: auto;
        clip-path: none;
        border-radius: 12px;
        padding: 1.6rem 1.2rem;
        margin-bottom: 0.4rem;
    }
    .ciclo-centro strong { font-size: 1.15rem; }

    .ciclo-nodo {
        position: static;
        transform: none;
        margin: 0;
        width: auto;
        height: auto;
        animation: none;
    }
    .ciclo-cara {
        clip-path: none;
        border-radius: 10px;
        padding: 1.1rem 0.7rem;
        min-height: 104px;
        border-top: 3px solid var(--naranja-energia);
    }
    .ciclo-nodo em { font-size: 0.78rem; }
    .ciclo-nodo:hover .ciclo-cara,
    .ciclo-nodo:focus-visible .ciclo-cara { transform: scale(1.04); }
    .ciclo-rueda:hover .ciclo-nodo:not(:hover) .ciclo-cara { opacity: 1; }
}

@media (max-width: 820px) {
    .menu-btn { display: block; }

    header nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 0; padding: 0.4rem 0;
        background: var(--blanco);
        box-shadow: 0 14px 28px rgba(35, 79, 115, 0.18);
        border-bottom: 3px solid var(--naranja-energia);
    }
    header nav.open { display: flex; }
    header nav a {
        padding: 0.95rem 1.4rem;
        border-bottom: 1px solid rgba(35, 79, 115, 0.08);
        font-size: 1rem;
    }
    header nav .lang { border-left: 0; padding: 0.8rem 1.4rem; gap: 1.4rem; flex-direction: row; }
    .logo-header { height: 46px; }

    .hero { min-height: auto; padding: 56px 1.2rem 64px; }
    .logo-hero { height: 140px; }
    .logo-hero-wrap { padding: 1.5rem; border-radius: 14px; margin-bottom: 1.8rem; }
    .hero h1 { font-size: 1.65rem; line-height: 1.3; }
    .hero p { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 0.9rem; }
    .hero-cta .btn { width: 100%; }

    .page-hero { padding: 46px 1.2rem 40px; }
    .page-hero h1 { font-size: 1.7rem; }
    .page-hero p { font-size: 0.98rem; }

    .principio { padding: 56px 1.2rem; }
    .principio::before { display: none; }
    .principio-eyebrow { margin-bottom: 1.6rem; }
    .principio p { font-size: 1rem; line-height: 1.78; }
    .ecuacion {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.8rem 1.2rem;
        margin: 2.2rem auto;
    }
    .ecuacion i { font-size: 1.15rem; }

    .container { padding: 48px 1.2rem; }
    .servicios { padding: 48px 1.2rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header { margin-bottom: 36px; }

    .etapas { grid-template-columns: 1fr; gap: 1.2rem; }
    .etapa { padding: 1.6rem; }

    .servicios-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .servicio-item { padding: 1.6rem; }
    .servicio-section { padding: 1.6rem; }
    .servicio-section ul { margin-left: 1.1rem; }

    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-section { padding: 1.6rem; }
    .info-card { padding: 1.5rem; }

    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-visual { padding: 2rem 1.5rem; }
    .allies { grid-template-columns: 1fr; gap: 1.2rem; }
    .ally-card { padding: 1.5rem; }

    .etapa-nav { grid-template-columns: 1fr; }
    .etapa-nav-link.derecha { text-align: left; }
    .valor-box, .etapa-cta { padding: 1.6rem; }
    .etapa-cuerpo h2 { margin: 2rem 0 0.8rem; }

    .icono { width: 54px; height: 54px; margin-bottom: 0.9rem; }

    footer { padding: 2.5rem 1.2rem 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-logo { height: 56px; }
}

/* --- Celular chico --- */
@media (max-width: 480px) {
    .ciclo-rueda { grid-template-columns: repeat(2, 1fr); }
    .logo-hero { height: 115px; }
    .hero h1 { font-size: 1.45rem; }
    .logo-header { height: 40px; }
    header { padding: 0.6rem 1rem; }
    .container, .ciclo, .servicios { padding-left: 1rem; padding-right: 1rem; }
    .btn { padding: 0.9rem 1.4rem; font-size: 0.95rem; }
}
