/* =========================
   VARIABLES BASE
========================= */
:root{
  --bg:#f6f7f8;
  --surface:#ffffff;

  --text:#101413;
  --muted:#4a5a55;

  --green:#1f6b4f;
  --green2:#164c38;

  --line:rgba(16,20,19,.12);
  --shadow:0 18px 55px rgba(0,0,0,.10);

  --container:1120px;
}

/* =========================
   RESET BÁSICO
========================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
}

/* =========================
   HEADER (SE QUEDA)
========================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand__logo{
  width:68px;
  height:68px;
  object-fit:contain;
  flex: 0 0 auto;
}

.brand__name{
  font-weight:900;
  letter-spacing:.08em;
  font-size: 16px;
  line-height: 1.1;
}

.brand__tag{
  font-size:12px;
  color:rgba(16,20,19,.60);
  margin-top:2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav__link{
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(16,20,19,.82);
}

.nav__link:hover{
  background:rgba(16,20,19,.05);
}

.nav__link.is-active{
  color:var(--green2);
  font-weight:800;
}

.nav__cta{
  border:1px solid rgba(31,107,79,.25);
  background:rgba(31,107,79,.08);
  font-weight:800;
  color:var(--green2);
}

.nav__toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}

.nav__toggle span{
  display:block;
  height:2px;
  width:20px;
  margin:5px auto;
  background:#222;
}

/* =========================
   HERO CON IMAGEN DIFUMINADA
========================= */
.hero2{
  position:relative;
  padding:56px 0 40px;
  min-height:68vh;
  overflow:hidden;
}

.hero2__bg{
  position:absolute;
  inset:0;
  z-index:0;

  background-image:
    linear-gradient(to bottom,
      rgba(246,247,248,1) 0%,
      rgba(246,247,248,1) 28%,
      rgba(246,247,248,.92) 42%,
      rgba(246,247,248,.70) 58%,
      rgba(246,247,248,.30) 78%,
      rgba(246,247,248,0) 100%
    ),
    url("img/herobg.jpg");

  background-size:cover;
  background-position:center bottom;

  filter: blur(2px) saturate(1.1) contrast(1.05);
  transform: scale(1.03);
  opacity:.85;
}

.hero2__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:48px;
}

.hero2__copy h1{
  margin:0 0 12px;
  font-size:48px;
  line-height:1.05;
  letter-spacing:-.02em;
}

.hero2__copy .lead{
  margin:0;
  font-size:18px;
  line-height:1.85;
  color:rgba(16,20,19,.74);
  max-width:70ch;
}

.intro-list{
  margin:18px 0 10px;
  font-size:15px;
  color:rgba(16,20,19,.72);
}

/* LISTADO ABIERTO */
.pillars{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:10px;
}

.pillar{
  font-size:16px;
  line-height:1.7;
  color:rgba(16,20,19,.78);
  padding-left:14px;
  position:relative;
}

.pillar::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
  position:absolute;
  left:0;
  top:.75em;
}

/* GUIÑO ISO */
.iso-note{
  margin-top:18px;
  font-size:13px;
  color:rgba(16,20,19,.62);
  line-height:1.7;
}

/* RESPALDO DERECHA */
.proof2{
  margin-top:10px;
}

.proof2__item{
  font-size:14px;
  line-height:1.7;
  color:rgba(16,20,19,.74);
  padding:12px 0;
  border-bottom:1px solid rgba(16,20,19,.10);
}

.proof2__item:last-child{
  border-bottom:none;
}

/* =========================
   SECCIÓN PUERTAS
========================= */
.section{
  padding:44px 0 64px;
}

.section--flush{
  padding:44px 0 64px;
}

.choices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.choice{
  display:block;
  padding:18px 0;
  border-top:1px solid rgba(16,20,19,.12);
  border-bottom:1px solid rgba(16,20,19,.12);
  transition:transform .15s ease;
}

.choice:hover{
  transform:translateY(-2px);
}

.choice__t{
  font-size:22px;
  font-weight:900;
}

.choice__s{
  margin-top:6px;
  color:rgba(16,20,19,.70);
  line-height:1.8;
  max-width:58ch;
}

.choice__cta{
  margin-top:12px;
  font-weight:900;
  color:var(--green2);
}

/* CTA LIMPIO */
.cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.cta__t{
  font-weight:900;
}

.cta__s{
  margin-top:4px;
  color:rgba(16,20,19,.65);
}

.btn{
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  border:none;
  cursor:pointer;
}

.btn--primary{
  background:linear-gradient(135deg,var(--green),#2aa273);
  color:#fff;
  box-shadow:0 14px 35px rgba(31,107,79,.18);
}

/* =========================
   FOOTER (SE QUEDA)
========================= */
.footer{
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.85);
  padding:26px 0;
  color:rgba(16,20,19,.68);
  font-size:13px;
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.footer__links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footer__links a:hover{
  text-decoration:underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:980px){
  .hero2__grid{ grid-template-columns:1fr; }
  .hero2__copy h1{ font-size:38px; }
  .choices{ grid-template-columns:1fr; }
}

@media (max-width:860px){
  .nav__toggle{ display:block; }
  .nav{
    position:absolute;
    top:72px;
    left:18px;
    right:18px;
    display:none;
    flex-direction:column;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:12px;
  }
  .nav.is-open{ display:flex; }
}
/* ===== IMAGEN INTERMEDIA (franja) ===== */
.midshot{
  padding: 18px 0 8px;
}

.midshot__img{
  height: 340px;
  border-radius: 22px;
  background-image:
    linear-gradient(to bottom, rgba(246,247,248,.00), rgba(246,247,248,.18)),
    url("img/mid-shot.jpg");
  background-size: cover;
  background-position: 50% 65%;
  box-shadow: var(--shadow);
}
@media (max-width: 980px){
  .midshot__img{ height: 260px; border-radius: 18px; }
}
/* ===== SERVICIOS / PRODUCTOS con imagen, sin recuadros ===== */
.duo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 26px;
}

.duo__item{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0;
  border: none;
}

.duo__media{
  height: 220px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.duo__media--services{
  background-image:
    linear-gradient(to bottom, rgba(246,247,248,.00), rgba(246,247,248,.18)),
    url("img/services.jpg");
}
.duo__media--products{
  background-image:
    linear-gradient(to bottom, rgba(246,247,248,.00), rgba(246,247,248,.18)),
    url("img/products.jpg");
}

.duo__t{
  font-size: 22px;
  font-weight: 900;
}

.duo__s{
  margin-top: 6px;
  color: rgba(16,20,19,.70);
  line-height: 1.8;
  max-width: 60ch;
}

.duo__cta{
  margin-top: 10px;
  font-weight: 900;
  color: var(--green2);
}

/* En móvil se apila */
@media (max-width: 980px){
  .duo{ grid-template-columns: 1fr; }
  .duo__media{ height: 200px; border-radius: 18px; }
}
/* ===== MIDSHOT con texto dentro ===== */
.midshot__img{
  position: relative;
  overflow: hidden;
}

.midshot__overlay{
  position:absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;

  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 35px rgba(0,0,0,.45);
}

.midshot__t{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.midshot__s{
  margin-top: 6px;
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
}
/* ===== SERVICIOS/PRODUCTOS: TODO dentro de la imagen ===== */
.duo--overlay{
  margin-top: 26px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.duo__card{
  position: relative;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display:block;
}

.duo__card::before{
  content:"";
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.duo__card--services::before{
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.00), rgba(0,0,0,.55)),
    url("img/services.jpg");
}

.duo__card--products::before{
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.00), rgba(0,0,0,.55)),
    url("img/products.jpg");
}

.duo__overlay{
  position:absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 35px rgba(0,0,0,.45);
}

.duo__t{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.duo__s{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
  max-width: 60ch;
}

.duo__cta{
  margin-top: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  display:inline-block;
  border-bottom: 2px solid rgba(255,255,255,.35);
  padding-bottom: 2px;
}

@media (max-width: 980px){
  .duo--overlay{ grid-template-columns: 1fr; }
  .duo__card{ height: 260px; border-radius: 18px; }
}
.hero2__side{
  padding-top: 46px; /* baja el bloque derecho para que no compita con el H1 */
}
/* ===== Integrar el bloque derecho como nota lateral ===== */
.hero2__side{
  padding-top: 34px;  /* un poco menos que antes */
}

.proof2{
  border-left: 2px solid rgba(31,107,79,.22);
  padding-left: 16px;
}

.proof2__item{
  padding: 10px 0;
  border-bottom: 1px solid rgba(16,20,19,.08);
  color: rgba(16,20,19,.62);
  font-size: 13.5px;
}
/* =========================
   Servicios (servicios.html)
   Pegar al final de style-v2.css
========================= */

.services-hero{
  padding: 44px 0 10px;
}

.services-hero__media{
  margin: 0 auto 22px;
  max-width: 980px;        /* limita ancho del hero */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.services-hero__media img{
  display: block;
  width: 100%;
  height: 420px;           /* limita alto (ajustable) */
  object-fit: cover;       /* recorta bonito */
  object-position: 50% 30%;
}

.services-hero__copy{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;      /* como pediste */
}

.services-hero__title{
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.services-hero__lead{
  font-size: 18px;
  line-height: 1.55;
  color: rgba(16,20,19,.78);
  margin: 0;
}

.services-lines{
  padding: 26px 0 10px;
}

.services-lines__block{
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.9;        /* aire */
  color: rgba(16,20,19,.82);
}

.services-lines__block p{
  margin: 10px 0;
}

.services-lines__spacer{
  height: 16px;
}

.services-mid{
  padding: 30px 0 26px;
}

.services-mid__media{
  margin: 0 auto;
  max-width: 980px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
}

.services-mid__media img{
  display: block;
  width: 100%;
  height: 280px;           /* limita alto (ajustable) */
  object-fit: cover;
  object-position: 50% 30%;
}

.services-cta{
  padding: 26px 0 58px;
}

.services-cta__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 22px;
  border-radius: 18px;
  background: rgba(31,107,79,.08);
  border: 1px solid rgba(31,107,79,.20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.services-cta__title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -.01em;
}

.services-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: #1f6b4f;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(31,107,79,.25);
}

.services-cta__btn:hover{
  filter: brightness(.95);
}

/* Responsive */
@media (max-width: 720px){
  .services-hero__media img{ height: 260px; }
  .services-mid__media img{ height: 220px; }
  .services-cta__inner{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .services-cta__btn{ width: 100%; }
}
/* =========================
   CONTACTO (DIMERSA)
========================= */

.pagehead{ margin: 18px 0 28px; }
.pagehead__title{
  margin:0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.pagehead__lead{
  margin:0;
  color: rgba(16,20,19,.72);
  font-size: 18px;
  line-height: 1.6;
  max-width: 70ch;
}

.contact-grid{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.contact-card{
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(16,20,19,.12);
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.06);
}
.contact-card__title{
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.contact-card__item{
  padding: 10px 0;
  border-bottom: 1px solid rgba(16,20,19,.10);
}
.contact-card__item:last-child{ border-bottom: 0; }
.contact-card__k{
  font-size: 12px;
  color: rgba(16,20,19,.55);
  margin-bottom: 4px;
}
.contact-card__v{
  color: rgba(16,20,19,.86);
  text-decoration: none;
}
.contact-card__v:hover{ text-decoration: underline; }

.contact-form{ padding: 0; }

.field{ margin-bottom: 14px; }
.label{
  display:block;
  font-size: 13px;
  color: rgba(16,20,19,.62);
  margin: 0 0 6px;
}

.input, .textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(16,20,19,.18);
  background: rgba(255,255,255,.92);
  padding: 12px 12px;
  font: inherit;
  outline: none;
}
.input:focus, .textarea:focus{
  border-color: rgba(31,107,79,.45);
  box-shadow: 0 0 0 4px rgba(31,107,79,.12);
}

.actions{ margin-top: 10px; }

.fineprint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(16,20,19,.55);
  line-height: 1.6;
}

/* Alertas */
.alert{
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(16,20,19,.14);
}
.alert--error{ background: rgba(180, 0, 0, .06); }
.alert--ok{ background: rgba(31,107,79,.08); }

/* Honeypot invisible */
.hp{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Responsive */
@media (max-width: 920px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-card{ order: 2; }
  .contact-form{ order: 1; }
}
/* Mapa dentro de tarjeta de contacto */
.map-embed{
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16,20,19,.12);
  background: rgba(255,255,255,.9);
  height: 180px;
}

.map-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-card__maplink{
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(16,20,19,.70);
  text-decoration: none;
}

.contact-card__maplink:hover{
  text-decoration: underline;
}
/* =========================
   CONTACTO (layout + form)
   ========================= */

.contact-grid{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:28px;
  align-items:start;
  margin-top:22px;
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Tarjeta izquierda */
.contact-card{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.contact-card__title{
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-item{
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact-item:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.contact-label{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.contact-map{
  margin-top: 14px;
}

.contact-map iframe{
  display:block;
  width:100%;
  height: 220px;
  border:0;
  border-radius: 14px;
}

/* Formulario derecha */
.contact-form{
  background: transparent;
}

.form-group{
  margin-bottom: 16px;
}

.form-group label{
  display:block;
  font-size: 12px;
  color: rgba(16,20,19,.75);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  display:block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.contact-form textarea{
  resize: vertical;
  min-height: 160px;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(31,107,79,.35);
  box-shadow: 0 0 0 4px rgba(31,107,79,.12);
}

.form-note{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(16,20,19,.65);
}

/* Botón enviar alineado con tu estética */
.contact-form .btn{
  margin-top: 6px;
}
.contact-map{
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16,20,19,.10);
  background: #fff;
  height: 210px; /* prueba 220-260 si quieres más presencia */
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}

.contact-map iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-form .btn{
  margin-top: 10px;
}
.contact-card{
  padding-bottom: 18px;
}
@media (hover:hover){
  .contact-map{
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .contact-map:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(0,0,0,.10);
  }
}
