/* ==========================================================================
   Kallpa Aberturas – estilos del sitio
   Colores tomados del sitio original
   ========================================================================== */

:root {
    --k-naranja: #E77432;          /* botones, íconos y detalles */
    --k-naranja-hover: #CF6227;
    --k-celeste: #57A5DD;          /* menú activo, bloque final */
    --k-celeste-claro: #BBDCF3;
    --k-ocre: #F9D485;
    --k-gris-claro: #F4F4F4;
    --k-gris: #E0E0E0;
    --k-texto: #323232;
    --k-texto-suave: #54595F;
    --k-footer-1: #323232;
    --k-footer-2: #282828;
    --k-footer-3: #1D1D1D;
    --k-footer-texto: #C3C1C1;
    --k-header-alto: 76px;
}

body {
    font-family: "Noto Sans", system-ui, sans-serif;
    color: var(--k-texto);
    background: #fff;
}

h1, h2, h3 { color: var(--k-texto); font-weight: 700; }

a { color: var(--k-celeste); }

.skip-link {
    position: absolute; top: .5rem; left: .5rem; z-index: 2000;
    background: #fff; padding: .5rem 1rem; border-radius: 5px;
}

/* ---------- Botón ---------- */
.btn-kallpa {
    --bs-btn-bg: var(--k-naranja);
    --bs-btn-border-color: var(--k-naranja);
    --bs-btn-color: #F5F5F5;
    --bs-btn-hover-bg: var(--k-naranja-hover);
    --bs-btn-hover-border-color: var(--k-naranja-hover);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--k-naranja-hover);
    --bs-btn-active-border-color: var(--k-naranja-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 231, 116, 50;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 5px;
}

/* ---------- Encabezado ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header .navbar { min-height: var(--k-header-alto); }
.site-header .navbar-brand img { height: 45px; width: auto; }

.site-header .nav-link {
    color: var(--k-texto);
    font-weight: 500;
    font-size: 1.05rem;
    padding: .25rem .9rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active { color: var(--k-celeste); }

@media (min-width: 992px) {
    /* separadores "|" entre ítems, como en el sitio original */
    .site-header .nav-item + .nav-item { border-left: 1px solid #CFCFCF; }
    .site-header .nav-item:last-child .nav-link { padding-right: 0 !important; }
}

.navbar-toggler { border: 0; font-size: 2rem; color: var(--k-texto); padding: 0; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .site-header .navbar-nav { padding: .75rem 0 1rem; }
    .site-header .nav-link { padding: .6rem 0 !important; border-bottom: 1px solid #EEE; }
}

/* ---------- Textos reutilizables ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--k-texto);
    margin-bottom: .75rem;
}
.encabezado-seccion .eyebrow::after {
    content: "";
    display: block;
    width: 70px;
    height: 2.4px;
    background: var(--k-naranja);
    margin: .9rem auto 0;
}
.eyebrow-claro { color: #fff; }

.seccion { padding: 80px 0; }
.titulo-seccion { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1rem; }
.bajada-seccion { max-width: 860px; margin: 0 auto; color: var(--k-texto); }
.encabezado-seccion { margin-bottom: 3rem; }

.titulo-bloque { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 1rem; }
.texto-bloque { color: var(--k-texto); margin-bottom: 1.75rem; }

/* ---------- Portada ---------- */
.hero { background: #222; }
.hero .carousel-item {
    position: relative;
    height: calc(100vh - var(--k-header-alto));
    min-height: 480px;
    max-height: 860px;
}
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero .carousel-item::after {           /* oscurece la foto para que se lea el texto */
    content: ""; position: absolute; inset: 0;
    background: rgba(0, 0, 0, .35);
}
.hero-contenido {
    position: relative; z-index: 2;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    color: #fff;
}
.hero-titulo {
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-texto { font-size: 1.05rem; max-width: 760px; margin-bottom: 1.75rem; font-weight: 500; }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Fondos de secciones ---------- */
.bloque-celeste    { background: var(--k-celeste-claro); }
.bloque-gris-claro { background: var(--k-gris-claro); }
.bloque-ocre       { background: var(--k-ocre); }
.bloque-gris       { background: var(--k-gris); }

.bloque-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Propuesta de valor ---------- */
.valores h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.valores h3 i { color: var(--k-naranja); margin-right: .35rem; -webkit-text-stroke: 1px var(--k-naranja); }
.valores p { color: var(--k-texto-suave); margin: 0; padding-left: 1.85rem; }

/* ---------- Galería ---------- */
.galeria-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #ccc;
}
.galeria-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.galeria-item:hover img,
.galeria-item:focus img { transform: scale(1.06); }

.visor .modal-content { background: transparent; border: 0; }
.visor .carousel-item img {
    display: block;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}
.visor-cerrar { position: absolute; top: -2.25rem; right: 0; z-index: 5; }
.modal-backdrop.show { opacity: .9; }

/* ---------- Portada de páginas internas ---------- */
.page-hero {
    position: relative;
    height: 680px;
    max-height: calc(100vh - var(--k-header-alto));
    min-height: 420px;
    background: #222;
    overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(0, 0, 0, .4);
}

/* ---------- Productos: tipologías ---------- */
.tipologia { background: #fff; }
.tipologia img { object-fit: contain; padding: .5rem; }
.tipologia-nombre {
    font-size: 1.1rem;
    text-align: center;
    margin: .75rem 0 0;
}

/* ---------- Listas con tilde ---------- */
.listas-productos h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li {
    display: flex;
    gap: .55rem;
    margin-bottom: .6rem;
    font-weight: 500;
    color: #000;
}
.lista-check i { color: var(--k-naranja); -webkit-text-stroke: 1px var(--k-naranja); flex-shrink: 0; }
.lista-check small {
    display: block;
    font-weight: 400;
    color: var(--k-texto-suave);
    font-size: .85rem;
}

/* ---------- Proceso: línea de tiempo ---------- */
.linea-tiempo {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1140px;
    position: relative;
}
.linea-tiempo::before {                 /* línea vertical */
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: #D9D9D9;
    transform: translateX(-50%);
}
.etapa {
    position: relative;
    width: 50%;
    padding: 0 2.5rem 2rem 0;
}
.etapa:nth-child(even) { margin-left: 50%; padding: 0 0 2rem 2.5rem; }
.etapa::after {                         /* punto naranja sobre la línea */
    content: "";
    position: absolute;
    top: 1.6rem;
    right: -7px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--k-naranja);
    box-shadow: 0 0 0 4px #fff;
}
.etapa:nth-child(even)::after { right: auto; left: -7px; }
.etapa-tarjeta {
    background: var(--k-celeste-claro);
    border-radius: 5px;
    padding: 1.5rem 1.75rem;
}
.etapa-numero {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--k-naranja);
}
.etapa-tarjeta h3 { font-size: 1.25rem; margin: .35rem 0 .5rem; }
.etapa-tarjeta p { margin: 0; color: var(--k-texto); }

@media (max-width: 767.98px) {
    .linea-tiempo::before { left: 7px; }
    .etapa, .etapa:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.5rem 2rem; }
    .etapa::after, .etapa:nth-child(even)::after { left: 0; right: auto; }
}

/* ---------- Contacto ---------- */
.contacto-hero-texto {
    background: var(--k-celeste);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 4rem max(1.5rem, calc((100vw - 1140px) / 2 + .75rem));
    padding-right: 3rem;
    min-height: 520px;
}
.contacto-hero-texto h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.contacto-hero-texto p:last-child { font-size: 1.1rem; font-weight: 500; margin: 0; }
.contacto-hero-foto { min-height: 320px; }
.contacto-hero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.datos-contacto h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.datos-intro { color: var(--k-texto-suave); margin-bottom: 1.5rem; }
.dato h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.dato h3 i { color: var(--k-naranja); margin-right: .25rem; }
.dato p { margin-bottom: .25rem; color: var(--k-texto); }
.dato a { font-weight: 500; text-decoration: none; }
.dato a:hover { text-decoration: underline; }

.mapa { position: relative; border-radius: 5px; overflow: hidden; }
.mapa img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mapa-etiqueta {
    position: absolute; right: 1rem; bottom: 1rem;
    background: #fff; color: var(--k-texto);
    padding: .45rem .8rem; border-radius: 5px;
    font-size: .9rem; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ---------- Páginas legales ---------- */
.titulo-simple {
    background: var(--k-gris-claro);
    padding: 64px 0 48px;
    border-bottom: 3px solid var(--k-naranja);
}
.titulo-simple h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; max-width: 900px; }
.titulo-simple .container,
.texto-legal .container { max-width: 860px; }
.texto-legal h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.texto-legal p, .texto-legal li { color: var(--k-texto-suave); line-height: 1.7; }

/* ---------- Bloque final (CTA) ---------- */
.cta-final {
    background: var(--k-celeste);
    color: #fff;
    padding: 80px 0;
}
.cta-logo { height: 70px; width: auto; }
.cta-titulo { color: #fff; font-size: clamp(1.7rem, 3vw, 2rem); margin-bottom: .75rem; }
.cta-texto { font-size: 1.2rem; font-weight: 500; max-width: 720px; margin: 0 auto 1.75rem; }

/* ---------- Pie ---------- */
.site-footer { color: var(--k-footer-texto); font-size: .95rem; }
.site-footer a { color: var(--k-footer-texto); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: var(--k-footer-texto); font-size: 1.1rem; margin-bottom: 1rem; }

.footer-principal { background: var(--k-footer-1); padding: 64px 0 48px; }
.footer-links li { margin-bottom: .4rem; }
.footer-contacto li { margin-bottom: .55rem; display: flex; gap: .6rem; align-items: baseline; }
.footer-contacto i { color: var(--k-naranja); }

.footer-barra { background: var(--k-footer-2); padding: 18px 0; }
.footer-redes a { font-size: 1.25rem; margin-right: 1rem; }
.footer-legales .list-inline-item:not(:last-child)::after { content: "|"; margin-left: .6rem; opacity: .5; }

.footer-copy { background: var(--k-footer-3); padding: 14px 0; font-size: 13px; text-align: center; }

/* ---------- Ajustes para celular ---------- */
@media (max-width: 767.98px) {
    :root { --k-header-alto: 64px; }
    .seccion, .cta-final { padding: 56px 0; }
    .hero .carousel-item { height: 78vh; }
    .page-hero { height: 60vh; min-height: 380px; }
    .hero .carousel-control-prev,
    .hero .carousel-control-next { display: none; }   /* en celular se cambia con el dedo o los puntos */
    .site-header .navbar-brand img { height: 38px; }
}
