/* =============================================
   GRUP CABOT ENERGIA — style.css
   ============================================= */

  
/* Fonts */

@font-face{
    font-family: "COCOGOOSE DemiBold";
    src: url("fonts/COCOGOOSE-DemiBold.eot");
    src: url("fonts/COCOGOOSE-DemiBold.eot?#iefix")format("embedded-opentype"),
        url("fonts/COCOGOOSE-DemiBold.woff")format("woff"),
        url("fonts/COCOGOOSE-DemiBold.woff2")format("woff2"),
        url("fonts/COCOGOOSE-DemiBold.ttf")format("truetype"),
        url("fonts/COCOGOOSE-DemiBold.svg#COCOGOOSE-DemiBold")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Corporativos */
  --azul: #3e8dae;
  --azul-claro: #5aaac9;
  --azul-palido: #e8f4f9;
  --azul-medio: #6dbdd8;
  --naranja: #ed9e3a;
  --naranja-suave: #fdf0d8;

  /* Neutros (sin cambios) */
  --gris-oscuro: #1A1A1A;
  --gris-medio: #4A4A4A;
  --gris-suave: #F4F4F0;
  --blanco: #FFFFFF;

  /* Tipografía y layout */
  --font-display: "COCOGOOSE DemiBold";
  --font-body:  "Public Sans", sans-serif;
  --max: 1160px;
  --rad: 12px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--gris-oscuro);
  background: var(--blanco);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: absolute; 
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent; 
  backdrop-filter: none;
  border-bottom: none;
    padding: 1rem 2rem;
}
a.nav-logo img {
    max-width: 230px;
    height: auto;
}
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
nav.scrolled {
  position: fixed;
  background: rgb(20 50 63);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
/* Y restaurar colores de texto al hacer scroll */
nav.scrolled .nav-links a { color:white;}
nav.scrolled .nav-logo    { color: var(--azul); }
nav.scrolled .nav-logo span { color: var(--gris-oscuro); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
    color: var(--blanco);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dot {
  width: 8px; height: 8px;
  background: var(--naranja);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-family:var(--font-display);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {   color: var(--blanco);}
.nav-cta {
background: var(--azul) !important;
    color: var(--blanco) !important;
    padding: 0.85rem 1.75rem;
    border-radius: 35px;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--azul-claro) !important; }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 50px; 
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-grup-cabot-energias.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.28);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
 radial-gradient(ellipse 60% 60% at 80% 50%, rgba(62,141,174,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(237,158,58,0.1) 0%, transparent 60%);
}
.hero-grid {
  display:none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
  z-index: 1;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 100%;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background: #ed9e3aa8; */
    /* border: 1px solid rgba(245, 200, 66, 0.3); */
    color: white;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}
.hero-content {
  text-align: center;       
  max-width: 720px;         
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: var(--blanco);
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
      text-shadow: 2px 2px 2px #0000002e;
}
.hero-title em {
  font-style: normal;
  color: var(--naranja);
}
.hero-desc {
  font-size: 1.1rem;
  color: rgb(255 255 255 / 64%);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 560px;
    margin-left: auto;        
  margin-right: auto;       
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center; 
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blanco);
}
.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero visual (right col) */
.hero-visual { position: relative; }
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  transition: background 0.2s;
}
.hero-card:hover { background: rgba(255,255,255,0.1); }
.hero-card.featured {
  grid-column: 1 / -1;
 background: rgba(62,141,174,0.28);
  border-color: rgba(109,189,216,0.3);
}
.hero-card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.hero-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.3rem;
}
.hero-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── BOTONES GENÉRICOS ───────────────────────── */
.btn-primary {
  background: var(--azul);
  font-family:var(--font-display);
  color: var(--blanco);
  padding: 0.85rem 1.75rem;
  border-radius: 35px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--azul-claro); transform: translateY(-1px); }
.btn-outline {
  font-family:var(--font-display);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 1.75rem;
  border-radius: 35px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn-yellow {
    background: var(--naranja);
    color: var(--gris-oscuro);
    padding: 0.9rem 2rem;
    border-radius: 35px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-block;
}
.btn-yellow:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost {
     border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 35px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, color 0.2s;
    font-weight: 800;
    display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: var(--blanco); }

/* ── SECCIONES GENÉRICAS ─────────────────────── */
section { padding: 5rem 2rem; }
.container { max-width: var(--max); margin: 0 auto; }
.section-kicker {
     font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--azul);
    margin-bottom: 0.75rem;
    display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--gris-oscuro);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 16px;
  color: var(--gris-medio);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

/* Animación de entrada */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── INTRO ───────────────────────────────────── */
.intro { background: var(--gris-suave); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.value-pill {
  background: var(--blanco);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gris-oscuro);
}

.value-pill i {
  color: var(--azul);   /* o --naranja si prefieres el acento cálido */
  font-size: 0.85rem;
  flex-shrink: 0;
}
.intro-right { display: grid; gap: 1rem; }
.intro-highlight {
 background: var(--azul);
  border-radius: var(--rad);
  padding: 2rem;
  color: var(--blanco);
}
.intro-highlight h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}
section#grupo p.number {
    color: white !important;
    font-size: 4rem;
    font-weight: 600;
    opacity: 1;
}
.intro-highlight p { font-size: 1rem; opacity: 0.75; font-weight: 300; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.intro-stat-card {
  background: var(--blanco);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--rad);
  padding: 1.25rem;
}
.intro-stat-card strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -1px;
  display: block;
}
.intro-stat-card p { font-size: 0.8rem; color: var(--gris-medio); margin-top: 0.25rem; }

/* Imagen intro */
.intro-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-top: 2rem;
}
.intro-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.intro-img-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--azul);
  color: var(--blanco);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}

/* ── EMPRESAS ────────────────────────────────── */
.empresas { background: var(--blanco); }
.empresas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.empresas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.empresa-card {
 box-shadow: 0 8px 20px rgb(0 0 0 / 11%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 7px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.empresa-card:hover {
  transform: translateY(-5px);
      border: none;
  box-shadow:0 16px 48px rgb(0 0 0 / 40%);
}
.empresa-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.empresa-card-top {
  padding: 1.75rem 1.75rem 1.25rem;
  flex: 1;
  position: relative;
}
.empresa-logo-mark {
width: 90%;
    height: auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}
.empresa-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  color: var(--gris-oscuro);
}
.empresa-card-tagline {
      font-size: 16px;
    color: var(--gris-medio);
    font-weight: 300;
    line-height: 1.55;
    margin-top: 15px;
}
.empresa-card-services {
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--gris-suave);
}
.service-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin: 0.2rem 0.2rem 0.2rem 0;
}
.empresa-card-link {
  padding: 1.3rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  transition: gap 0.2s;
}
h3.empresa-card-name {
  display:none;
}
.empresa-card:hover .empresa-card-link { gap: 10px; }
.badge-nuevo {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--naranja);
  color: #412402;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
}

/* colores por empresa */
img.logo-card-img {
        width: auto;
    height: 60px;
    object-fit: cover;
}
.cea .service-tag       {  background: var(--azul-palido); color: var(--azul);}
.cea .empresa-card-link {     color: white;
    background: #33b288;
    font-family: var(--font-display);}

.sin .empresa-card-link { color: white;
    background: #ed9e3a;
    font-family: var(--font-display);}


.fot .empresa-card-link {     color: white;
    background: #d76952;
    font-family: var(--font-display); }

/* ── SERVICIOS ───────────────────────────────── */
.servicios { background: var(--gris-suave); }
.servicios-grid {
 display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  row-gap: 3rem; /* ← sobreescribe solo el gap vertical */
  margin-top: 3rem;
}
.servicio-item {
  background: var(--blanco);
  box-shadow:0 8px 20px rgb(0 0 0 / 11%);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 7px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.servicio-body h3 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.servicio-body h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px;
  height: 2px;
  background: var(--naranja);
}
.servicio-item:hover { box-shadow: 0 16px 48px rgb(0 0 0 / 40%);}
.servicio-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.servicio-body {
  padding: 2rem;
  /*display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: start;*/
}.servicio-img-wrap {
  overflow: hidden;  /* contiene el zoom para que no se salga */
}

.servicio-img {
  width: 100%;
  height:222px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.servicio-item:hover .servicio-img {
  transform: scale(1.07);
}
.servicio-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--gris-oscuro);
}
.servicio-item p {
  font-size: 0.875rem;
  color: var(--gris-medio);
  line-height: 1.65;
  font-weight: 300;
  margin-top:20px;
}

/* ── POR QUÉ ELEGIRNOS ───────────────────────── */
.porque { background:  var(--azul); color: var(--blanco); }
/* Elimina o comenta el ::before */
/* .porque::before { ... } */

.porque {
  position: relative;
  overflow: hidden;
}

.porque-deco {
  position: absolute;
  right: -60px;        /* sale un poco por la derecha */
  bottom: -40px;       /* sale un poco por abajo */
  width:400px;        /* tamaño grande */
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  filter: brightness(0) invert(1); /* blanco para que combine con el fondo */
}
.porque .section-title { color: var(--blanco); }
.porque .section-desc { color: rgba(255,255,255,0.7); }
.porque .section-kicker { color: rgba(255,255,255,0.55); }
.razones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.razon-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rad);
  padding: 2rem;
  transition: background 0.2s;
}
.razon-card:hover { background: rgba(255,255,255,0.12); }
.razon-num {
     font-family: var(--font-body);
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: rgb(255 255 255 / 61%) !important;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.razon-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}
.razon-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  font-weight: 300;
}

/* ── PROCESO ─────────────────────────────────── */
.proceso { background: var(--blanco);
 padding-bottom: 2rem;  }
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}
.proceso-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 6px,
    transparent 6px, transparent 14px
  );
}
.proceso-step { padding: 0 1rem; text-align: center; }
.paso-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--azul);
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--azul);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: background 0.2s, color 0.2s;
}
.proceso-step:hover .paso-circle {
  background: var(--azul);
  color: var(--blanco);
}
.proceso-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gris-oscuro);
}
.proceso-step p {
  font-size: 16px;
  color: var(--gris-medio);
  line-height: 1.6;
  font-weight: 300;
}

/* ── CTA BANNER ──────────────────────────────── */
.cta-banner {
 position: relative;
 margin-top:5vh;
  overflow: hidden; 

}

.cta-banner-img {
   position: absolute;
  inset: -30%;
  background-image: url('images/bg-banner-cabot.jpg');
   background-size: cover;
  background-position: center;
  filter: brightness(0.7); 

}
.cta-banner-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
}
.cta-banner-inner {
  position: relative;
  z-index: 2;
   padding: 6rem 2rem;
}
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
    position: relative;
  z-index: 2;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blanco);
  letter-spacing: -2px;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.cta-inner p {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACTO ────────────────────────────────── */
.contacto { background: var(--gris-suave); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contacto-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.contacto-info > p {
  color: var(--gris-medio);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contacto-dato {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gris-medio);
}
.dato-icon i {
    color:white;
}
.contacto-dato strong { color: var(--gris-oscuro); font-weight: 500; }
.dato-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3e8dae;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contacto-mapa {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
}
.contacto-mapa img {
  width: 100%;
  display: block;
}

/* Formulario */
.contact-form {
  background: var(--blanco);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gris-oscuro);
  letter-spacing: 0.2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--gris-oscuro);
  background: var(--blanco);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(29,107,58,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  background: var(--azul);
  color: var(--blanco);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.form-submit:hover { background: var(--azul-claro); transform: translateY(-1px); }
.form-legal {
  font-size: 0.75rem;
  color: var(--gris-medio);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.form-legal a { color: var(--azul); }
/* Error por campo */
.form-group input.error,
.form-group select.error {
  border-color: #e24b4a;
  box-shadow: 0 0 0 3px rgba(226,75,74,0.1);
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
footer p.title {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.field-error {
  font-size: 0.75rem;
  color: #e24b4a;
  margin-top: 4px;
  display: block;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
/* Mensaje global */
.form-message {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}
.form-message[data-type="ok"] {
  background: var(--azul-pálido);
  color: var(--azul);
  border: 1px solid var(--azul-medio);
}
.form-message[data-type="error"] {
  background: #FCEBEB;
  color: #A32D2D;
  border: 1px solid #F09595;
}
/* ── FOOTER ──────────────────────────────────── */
footer {
  background: #14323f;
  color: rgba(255,255,255,0.5);
  padding: 3.5rem 2rem 2rem;
}
a.footer-brand img {
    max-width: 230px;
    height: auto;
}
.footer-inner .fa-solid {
    color: #ed9e3a;
    font-size: 13px;
    margin-right: 2px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blanco);
  margin-bottom: 0.75rem;
  display: block;
  text-decoration: none;
}
.footer-brand-desc { font-size: 0.85rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition:.5s all;

}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); padding-left: 5px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--azul-claro);
}
/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .empresas-grid { grid-template-columns: 1fr 1fr; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .razones-grid { grid-template-columns: 1fr 1fr; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
  .proceso-steps::before { display: none; }
  .servicios-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 700px) {
  .hero-title { font-size:2rem;}
  
  .hero-desc {
    font-size: 16px;
            margin-bottom: 20px;
  }
  .empresas-grid { grid-template-columns: 1fr; }
  .razones-grid { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .intro-values { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
    .servicios-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .empresas-grid {
    gap: 3.5rem;
  }
  .empresa-card-tagline {
    font-size: 15px;
    line-height: 1.8;
  }
  .proceso-step {

    margin-top: 21px;
  }
  .contacto-info h2, h2.section-title{
    font-size: 1.6rem;
    line-height: 1.5em;
  }
  .hero-kicker {
      letter-spacing: 2px;
  }
  .hero-inner {
    padding: 2rem 2rem 4rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
}
@media (max-width: 900px) {
    .nav-links.mobile-open {
        display: flex;
        background: #113341;
    }
}

 /* ── ESTILOS ESPECÍFICOS DE PÁGINA LEGAL ── */
  .legal-hero {
    background:rgb(20 50 63);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(62,141,174,0.2) 0%, transparent 70%);
  }
  .legal-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
  }
  .legal-breadcrumb a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
  }
  .legal-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
  .legal-breadcrumb i { font-size: 0.6rem; }
  .legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--blanco);
    letter-spacing: -1.5px;
    margin-bottom: 0.75rem;
  }
  .legal-hero p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
  }

  /* ── CONTENIDO LEGAL ── */
  .legal-content {
    padding: 4rem 2rem 5rem;
    background: var(--blanco);
  }
  .legal-inner {
    max-width: 800px;
    margin: 0 auto;
  }

  /* Índice */
  .legal-toc {
    background: var(--gris-suave);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--rad);
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
  }
  .legal-toc h2 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gris-medio);
    margin-bottom: 1rem;
  }
  .legal-toc ol {
    padding-left: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 2rem;
  }
  .legal-toc ol li a {
    color: var(--azul);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
  }
  .legal-toc ol li a:hover { color: var(--azul-claro); }

  /* Secciones */
  .legal-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .legal-section h2 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--naranja);
    display: inline-block;
  }
  .legal-section h3 {
    font-family:var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    margin: 1.5rem 0 0.75rem;
  }
  .legal-section p {
    font-size: 0.9rem;
    color: var(--gris-medio);
    line-height: 1.8;
    margin-bottom: 1rem;
  }
  .legal-section ul, .legal-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  .legal-section ul li, .legal-section ol li {
    font-size: 0.9rem;
    color: var(--gris-medio);
    line-height: 1.8;
    margin-bottom: 0.4rem;
  }
  .legal-section a {
    color: var(--azul);
    text-decoration: none;
  }
  .legal-section a:hover { text-decoration: underline; }

  /* Bloque de datos destacado */
  .legal-datos {
    background: var(--azul-palido);
    border: 1px solid rgba(62,141,174,0.2);
    border-radius: var(--rad);
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  .legal-datos table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
  }
  .legal-datos table tr td {
    padding: 0.5rem 0;
    vertical-align: top;
    color: var(--gris-medio);
    border-bottom: 1px solid rgba(62,141,174,0.12);
    line-height: 1.5;
  }
  .legal-datos table tr:last-child td { border-bottom: none; }
  .legal-datos table tr td:first-child {
    font-weight: 600;
    color: var(--gris-oscuro);
    width: 180px;
    padding-right: 1rem;
  }

  /* Fecha actualización */
  .legal-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--naranja-suave);
    border: 1px solid rgba(237,158,58,0.3);
    color: #7a4a0a;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 2.5rem;
  }

  @media (max-width: 600px) {
    .legal-toc ol { grid-template-columns: 1fr; }
    .legal-datos table tr td:first-child { width: 130px; }
  }

  /* Nav en páginas interiores */
  nav.scrolled   nav.page-interior {
    position: fixed !important;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  }
  nav.page-interior .nav-links a { color: var(--gris-medio) !important; }
  nav.page-interior .nav-logo { color: var(--azul) !important; }
  nav.page-interior .nav-logo span { color: var(--gris-oscuro) !important; }

  @media (max-width: 900px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 68px; left: 0; right: 0;
      background: rgba(255,255,255,0.98);
      backdrop-filter: blur(12px);
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      border-bottom: 1px solid rgba(0,0,0,0.08);
      padding: 0.5rem 0;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.85rem 2rem; border-radius: 0; }
    .nav-cta { margin: 0.5rem 2rem 1rem !important; display: block; text-align: center; }
  }