/* =========================================
   MAIN CSS â€“ Consultora en Estrategia TecnolÃ³gica
   Paleta: Azul + Gris claro + Verde azulado (acento)
   VersiÃ³n 1.3
   ========================================= */

/* --- FUENTE --- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

/* --- VARIABLES --- */
:root {
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* --- PALETA SOBRIA Y ENERGÃ‰TICA --- */
  --brand: #e46f29;     /* Naranja quemado - color principal */
  --brand2: #f6b84a;    /* Amarillo suave - acento secundario */
  --accent: #636a72;    /* Gris azulado oscuro - fondo oscuro o contraste */

  /* --- BASE --- */
  --bg: #f5f6f8;        /* Fondo general */
  --card: #ffffff;       /* Fondo de tarjetas */
  --text: #2c2c2c;       /* Texto principal */
  --text-light: #6c727a; /* Texto secundario */
  --b: #dfe2e6;          /* Bordes suaves */

  /* --- EFECTOS Y DETALLES --- */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --transition: 0.25s ease;
}
/* --- RESET / BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- CONTAINERS --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

p {
  font-size: 16px;
  line-height: 1.2;
}

/* --- TITLES --- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.lead {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem !important;
    border-radius: var(--radius);
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    line-height: 1;
    color: #fff !important;
    background: var(--brand);
}

.btn-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    line-height: 1;
    color: var(--brand) !important;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn-menu:hover {
  color: var(--brand2);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--brand2);
  color: var(--brand2);
  font-weight: 600;
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px); /* ?? compensa el borde */
}

.btn--ghost:hover {
  background: var(--accent);
  color: #fff;
}

.btn--alt {
  background: linear-gradient(135deg, var(--brand2) 0%, var(--brand) 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 6px 15px rgba(228, 111, 41, 0.25); /* sombra cÃ¡lida */
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--alt i {
  font-size: 1.1rem;
}

.btn--alt:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(228, 111, 41, 0.35);
  filter: brightness(1.05);
}


/* --- NAV --- */
.nav {
    background: var(--card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 15px;
    border-bottom: 3px solid var(--brand2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color var(--transition);
  padding-bottom: 4px; /* espacio para el borde */
}

/* LÃ­nea inferior dorada en hover y active */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--brand2); /* Amarillo dorado */
  transition: width 0.3s ease;
}

.menu a.btn::after {
  display: none !important;
  content: none !important;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a.active{
 font-weight: bold;
}

/* Cambio de color de texto en hover */
.menu a:hover,
.menu a.active {
  color: var(--text);
}

/* --- HERO (fusionado) --- */
.hero {
  position: relative;
  padding: 7rem 0;
  color: #fff;
  background-image:
    /* 1?? capa gris â€” debe ir Ãºltima para estar arriba del todo */
    linear-gradient(
      rgba(47, 52, 59, 0.6),   /* gris plomo oscuro semitransparente */
      rgba(47, 52, 59, 0.6)
    ),
    /* Capa 2: imagen base */
    url("../img/getty-images-ZoE9PSqehR8-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

#nosotros .hero{
  background-image:
    /* 1?? capa gris â€” debe ir Ãºltima para estar arriba del todo */
    linear-gradient(
      rgba(47, 52, 59, 0.6),   /* gris plomo oscuro semitransparente */
      rgba(47, 52, 59, 0.6)
    ),
    /* Capa 2: imagen base */
    url("../img/getty-images-RuHgslN__cA-unsplash.jpg");
}

.hero::after {
  /* capa de oscurecimiento gris plomo semitransparente para contraste */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.70);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 5px 18px;
    border-radius: 25px;
}

.hero__title {
  font-size: clamp(2.4rem, 3.6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.hero__title span {
  color: #f6b84a; /* destaca una palabra clave */
}

.hero__text {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}


.actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* --- SECTION BASE --- */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--b);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* --- ABOUT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.about__content ul {
  margin: 1.2rem 0;
  list-style: none;
}
.about__content li {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 14px;
}

.about__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- SERVICES --- */
.services-preview {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.service-icon {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.link-more {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.link-more:hover {
  color: var(--brand);
}

.services-cta {
  text-align: center;
  margin-top: 2rem;
}

/* --- TIMELINE / METODOLOGÃA --- */
.timeline-h {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.tlh-item {
  background: var(--card);
  border: 1px solid var(--b);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex: 1 1 250px;
}
.tlh-pin {
  background: var(--accent);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* --- VALOR DIFERENCIAL --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.value-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--b);
  box-shadow: var(--shadow-sm);
}
.value-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --- CONTACTO --- */
.contact-min__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 3rem;
}

.card-min {
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.links-min {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.links-min a {
  text-decoration: none;
  color: var(--brand);
}
.links-min a:hover {
  text-decoration: underline;
}

/* --- FOOTER --- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--b);
  padding: 0rem;
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer__links {
  margin-top: 0.5rem;
}
.footer__links a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 0.5rem;
}
.footer__links a:hover {
  color: var(--accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .contact-min__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .menu.open {
    display: flex;
    flex-direction: column;
    background: var(--card);
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    padding: 1rem 0;
    border-top: 1px solid var(--b);
  }
  .menu__toggle {
    display: inline-flex;
  }
}

.about__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 18px 35px var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__image img:hover {
  transform: translateY(-4px);
}

.menu__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

.fa-whatsapp:before {
    content: "\f232";
    font-size: x-large;
}

.about__content h2 .highlight-brand {
  color: var(--brand) !important;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(228, 111, 41, 0.2);
}

.section-header h2{
  color: var(--brand);
  font-size: 2.8rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  height: 70px; /* altura visual uniforme */
}

.service-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon img {
  transform: translateY(-4px);
  filter: drop-shadow(0 5px 10px rgba(228, 111, 41, 0.25));
}

/* --- SERVICE CARD --- */
.service-card {
  background: var(--card);
  border: 2px solid var(--b);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

/* Hover: borde color de marca y elevaciÃ³n */
.service-card:hover {
  border-color: var(--brand);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* --- LINK-MORE --- */
.link-more {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 25px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

/* Hover: cambia color del link */
.service-card:hover .link-more {
  color: var(--brand);
}

/* Para pantallas pequeÃ±as */
@media (max-width: 600px) {
  .link-more {
    position: static;
    transform: none;
    margin-top: 1rem;
  }
}

/* --- METODOLOGÃA (fondo oscuro elegante) --- */
.methodology {
  background: linear-gradient(135deg, var(--text) 0%, var(--text-light) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.methodology .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.methodology .section-header .eyebrow {
  color: var(--brand2);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.methodology .section-header h2 {
  color: #fff;
  font-size: 3.2rem;
  margin: 0.5rem 0;
}

.methodology .section-header .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
}

/* === PASOS === */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 2rem;
  }

  /* LÃ­nea conectora suave */
  .steps::before {
    content: "";
    position: absolute;
    top: 45px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    opacity: 0.3;
    z-index: 0;
  }
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 1rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
}

.step-icon {
  background:  var(--brand2);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.step:hover .step-icon {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand2), 0 6px 15px rgba(0, 0, 0, 0.3);
}

.step-content h3 {
  color: var(--brand2);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
  .methodology {
    text-align: center;
  }
  .steps::before {
    display: none;
  }
}

/* --- VALOR DIFERENCIAL (alineado al estilo "Nosotros") --- */
.value {
  text-align: center;
}

.value .section-header h2 {
  color: var(--brand);
  font-size: 2.4rem;
}

.value .section-header .lead {
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--b);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--brand2);
}

.value-icon {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.value-item h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.value-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- CONTACTO (fondo degradado cÃ¡lido) --- */
.contact-min--hero {
  background: linear-gradient(135deg, #d85d1f 0%, #e6a633 100%);
  color: #fff;
  padding: 6rem 0;
}

.contact-min__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 3rem;
}

.contact-min__head h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.contact-min__head .lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.btn--wa-min {
  display: inline-block;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn--wa-min:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Card de contacto */
.card-min {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.card-min:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.6);
}

.card-min h3 {
  color: var(--brand);
  margin-bottom: 1rem;
  font-weight: 700;
}

.links-min a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.links-min a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.small-min {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* --- FOOTER INFERIOR (oscuro y sobrio) --- */
.footer__inner {
    background: var(--accent);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 0 0 1.8rem 0;
    font-size: 0.95rem;
}

.footer__inner span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer__inner a {
  color: #d7a32f;
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 600;
}

.footer__inner a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(246, 184, 74, 0.6);
}

/* Separador entre contacto y footer */
.footer__inner::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  margin-bottom: 2rem;
} 

/* Accesibilidad visual */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* Texto oculto pero accesible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ===== SECCIÃ“N IDENTIDAD ===== */
.identidad {
  background: var(--bg);
}

.identidad__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.identidad__item h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.identidad__item p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.identidad__item--calidad {
  background: var(--card);
  border: 1px solid var(--b);
  border-left: 6px solid var(--brand2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  padding: 2rem;
  margin-top: 1rem;
}

/* ===== SECCIÃ“N VALORES ===== */
.valores {
  background: linear-gradient(135deg, var(--text) 0%, var(--text-light) 100%);
  color: #fff;
  text-align: center;
}

.valores .section-header .eyebrow {
  color: var(--brand2);
}

.valores .section-header h2 {
  color: #fff;
}

.valores .section-header .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.valores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.valor-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.valor-item h4 {
  color: var(--brand2);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.valor-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.valor-item:hover {
  transform: translateY(-6px);
  border-color: var(--brand2);
  box-shadow: var(--shadow);
}

/* ===== SECCIÃ“N SOSTENIBILIDAD ===== */
.sostenibilidad {
  background: #fff;
  color: var(--text);
  text-align: center;
}

.sostenibilidad .section-header h2 {
  color: var(--text);
}

.sostenibilidad .section-header .lead {
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 3rem;
}

.sostenibilidad__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.sostenibilidad__item {
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.sostenibilidad__item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.sostenibilidad__icon {
  font-size: 2rem;
  color: var(--brand2);
  margin-bottom: 1rem;
}

.sostenibilidad__item h3 {
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.sostenibilidad__item p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SECCIÃ“N SERVICIOS (PESTAÃ‘AS) ===== */
.servicios-tabs {
  background: #fff;
  text-align: center;
}

.servicios-tabs .section-header h2 {
  color: var(--brand);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.tab {
  background: var(--card);
  border: 2px solid var(--b);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  border-color: var(--brand2);
  color: var(--brand);
}

.tab.active {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.tab-content {
  display: none;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--b);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  margin: 0 auto;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.tab-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tab-icon img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.tab-icon img:hover {
  transform: scale(1.05);
}

.tab-content h3 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tab-content p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.tab-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}

.tab-list li {
  background: var(--bg);
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  color: var(--text);
  transition: transform 0.2s ease;
}

.tab-list li:hover {
  transform: translateX(5px);
}

/* AnimaciÃ³n suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    align-items: center;
  }
  .tab-content {
    padding: 2rem 1.25rem;
  }
}


/* ===== ACORDEONES DENTRO DE LAS TABS ===== */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  border: 1px solid var(--b);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: var(--brand2);
  color: #fff;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.open .accordion-body {
  max-height: 1200px; /* altura promedio del texto */
  padding: 1rem 1.2rem 1.2rem;
}

.accordion-item.open .accordion-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff;
}

/* Icono de expansiÃ³n visual */
.accordion-header::after {
  content: "+";
  float: right;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-header::after {
  content: "-";
  transform: rotate(180deg);
}

:target {
  scroll-margin-top: 103px; /* altura de tu nav */
}

/* El navegador compensarÃ¡ automÃ¡ticamente el ancla por la altura del nav */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h, 80px); /* fallback 80px */
}

/* Extra por si anclas a elementos especÃ­ficos */
[id] {
  scroll-margin-top: var(--nav-h, 80px);
}

/* === FOOTER === */
.footer {
  color: #fff;
  background: #0b0b0b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA superior */
.footer-cta {
  background: linear-gradient(135deg, var(--accent), var(--text));
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.footer-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.footer-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}
.footer-cta .btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.footer-cta .btn--whatsapp:hover {
  background: #1ebd5a;
  transform: translateY(-3px);
}

/* SecciÃ³n principal */
.footer-main {
  background: #fff;
  padding: 3.5rem 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}
.footer-brand img {
  max-width: 160px;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text);
}
.footer-links h3,
.footer-contact h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.1rem;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a,
.footer-contact a {
  display: block;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: #ff7b00;
}
.footer-contact i {
  margin-right: 0.5rem;
  color: #ff7b00;
}

/* Parte inferior */
.footer-bottom {
  background: var(--text);
  text-align: center;
  padding: 1.2rem;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  color: #aaa;
}

/* AnimaciÃ³n sutil al aparecer */
.footer-cta,
.footer-main {
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === OPTIMIZACIÓN RESPONSIVE GLOBAL === */
@media (max-width: 480px) {

  /* Ajustes generales */
  body {
    font-size: 15px;
    line-height: 1.5;
    padding: 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* Navegación móvil */
  .nav__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu {
    display: none;
  }

  .menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 103px;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--b);
    padding: 1rem;
    z-index: 100;
  }

  .menu__toggle {
    display: inline-flex;
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
  }

  /* Hero section */
  .hero {
    padding: 4rem 1rem;
    background-attachment: scroll;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  /* Grid simplificados */
  .about__grid,
  .contact-min__grid,
  .services-grid,
  .value-grid,
  .sostenibilidad__grid,
  .valores__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Tarjetas */
  .service-card,
  .value-item,
  .sostenibilidad__item,
  .valor-item {
    padding: 1.5rem 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-cta h2 {
    font-size: 1.5rem;
  }

  .footer-cta p {
    font-size: 0.95rem;
  }

  /* Botones */
  .btn,
  .btn--alt,
  .btn--wa-min {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Tabs y acordeones */
  .tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab {
    width: 100%;
  }

  .tab-content {
    padding: 1.5rem 1rem;
  }
}

/* === PREVENCIÓN DE DESBORDES === */
img, iframe, video {
  max-width: 100%;
}

.container {
  width: 95%;
  margin: 0 auto;
}

.section {
    padding: 6rem 1rem;
}

/* === Login page overrides === */
.login-container {
  max-width: 400px;
  margin: 8rem auto;
  padding: 2rem 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-container form input,
.login-container form button {
  width: 100%;
  margin-top: 1rem;
}


/* ===== BLOG POST VIEW ===== */

.post-header {
  text-align: left;
  margin-bottom: 2rem;
}

.post-category {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 2.2rem;
  color: var(--text);
  margin-top: 1rem;
}

.post-subtitle {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 0.4rem;
}

.post-meta {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.8rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin: 2rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-descripcion {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  text-align: justify;
  line-height: 1.6;
}

.post-contenido {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
}

.post-contenido p {
  margin-bottom: 1.2rem;
}

.post-actions {
  text-align: left;
  margin-top: 2.5rem;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.alert.ok {
  background: #d1f7d1;
  border: 1px solid #6ac46a;
  color: #2e7d32;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  text-align: left;
  margin-bottom: 1.5rem;
}

.blog-preview {
  background: #f9f9f9;
  padding: 5rem 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.blog-card__content {
  padding: 1.5rem;
}
.blog-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.blog-card__title a:hover {
  color: var(--brand);
}
.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.link-more {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.link-more:hover {
  opacity: 0.8;
}
.blog-cta {
  text-align: center;
  margin-top: 3rem;
}
.no-posts {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

/* --- Corrección para los enlaces "Leer más" del blog --- */
.blog-card .link-more {
  position: static;
  transform: none;
  bottom: auto;
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.blog-card .link-more:hover {
  color: var(--accent);
  opacity: 0.9;
}

/* ===== SECCIÓN RELACIONADOS ===== */
.relacionados {
  background: #f9fafb;
  padding-top: 3rem;
}

/* Evita repetir .section-header ya existente */
.section-header .highlight-brand {
  color: var(--brand);
}

/* Alineación del botón final */
.text-center {
  text-align: center;
}

/* ===== BLOG GENERAL ===== */
.blog-filtros {
  margin: 2rem 0 3rem;
  background: #f8f8f8;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filtros-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.blog-filtros label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.blog-filtros select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ===== SIN PUBLICACIONES ===== */
.no-posts {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin-top: 2rem;
}

/* ===== BLOG FILTROS (custom select estilo Boost IT) ===== */
.blog-filtros {
  margin: 2rem 0 3rem;
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filtros-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
}

.filtro {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.filtro label {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* --- Custom Select --- */
.custom-select {
  position: relative;
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  width: 230px;
}

.select-trigger {
  background-color: #fff;
  border: 1.5px solid var(--b);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  color: var(--text);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.select-trigger::after {
  content: "▾";
  font-size: 0.8rem;
  margin-left: 0.6rem;
  color: var(--text-light);
}

.custom-select.open .select-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 111, 41, 0.2);
}

.select-options {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--b);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  z-index: 50;
  list-style: none;
  padding: 0.3rem 0;
  display: none;
}
.custom-select.open .select-options {
  display: block;
  animation: fadeIn 0.15s ease;
}

.select-options li {
  padding: 0.6rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--text);
}
.select-options li:hover {
  color: var(--brand);
}

.select-options li.selected {
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .filtros-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .custom-select {
    width: 100%;
  }
}

/* ===== Acordeón – estilo visual mejorado ===== */

.accordion-body {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Bloques internos */
.ac-block {
  margin-bottom: 1.4rem;
}

.ac-block:last-child {
  margin-bottom: 0;
}

/* Subtítulos dentro del acordeón */
.ac-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

/* Texto introductorio */
.ac-intro {
  margin-bottom: 1rem;
  text-align: left !important;
}

/* Etiquetas tipo “badge” */
.ac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}

.ac-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--b);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--accent);
}

/* Listas con viñeta personalizada */
.icon-list {
  list-style: none;
  padding-left: 0;
  margin: 0.3rem 0 0.8rem;
}

.icon-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
}

.icon-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.55rem;
  color: var(--brand);
}

/* Pequeño resaltado de entregables */
.ac-highlight {
  background: #fff7ec;
  border-left: 3px solid var(--brand);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
