/* ============================================================
   SUMINISTROS JOVIMAR — Hoja de estilos
   Paleta industrial: azul marino + acento naranja
   ============================================================ */

:root {
  /* Colores reales de marca (del logo) */
  --navy: #263272;        /* índigo "SUMINISTROS" */
  --navy-dark: #1b2454;
  --navy-light: #34418c;
  --accent: #e50051;      /* magenta OFICIAL (color principal de marca) */
  --accent-dark: #c00043;
  /* Alias antiguos para compatibilidad */
  --orange: #e50051;
  --orange-dark: #c00043;
  --gray-50: #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #dce3ec;
  --gray-500: #6b7785;
  --gray-700: #3a4654;
  --text: #1c2630;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(14, 42, 71, .08);
  --shadow-md: 0 10px 30px rgba(14, 42, 71, .12);
  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Barlow Condensed', 'Inter', sans-serif; line-height: 1.1; font-weight: 600; }

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

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

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: all .2s ease;
  font-family: inherit; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--phone { background: var(--orange); color: #fff; }
.btn--phone:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--lg { padding: 14px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ============ TOPBAR ============ */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 38px; }
.topbar__item { display: flex; align-items: center; gap: 7px; }
.topbar__item a { display: flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar__item a:hover { color: var(--orange); }
.topbar__item svg { color: var(--orange); flex-shrink: 0; }
.topbar__addr-short { display: none; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 130; background: var(--white);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand--footer .brand__logo { height: 38px; }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: block; padding: 9px 14px; border-radius: 7px; font-weight: 600; font-size: .95rem;
  color: var(--gray-700); transition: all .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--orange); background: var(--gray-50); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav__close { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative; color: #fff; min-height: 640px; display: flex; align-items: center;
  overflow: hidden; background: var(--navy-dark);
}
/* Fondo del hero: carrusel con fundido entre 3 imágenes */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__bg.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(27,36,84,.96) 0%, rgba(38,50,114,.86) 50%, rgba(38,50,114,.5) 100%);
}
/* Acento magenta diagonal (bloque de color del manual de marca) */
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; z-index: 1;
  background: var(--accent); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%); opacity: .9;
}
@media (max-width: 768px) { .hero::after { display: none; } }
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 90px 20px; }
.hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem;
  font-weight: 700; color: #fff; margin-bottom: 18px;
}
.hero__title { font-size: clamp(3.5rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: .5px; line-height: 1.05; }
.hero__title span { color: #fff; }
/* Jerarquía del titular: principal grande, ubicación mediana, apellido pequeño.
   Los tamaños van en "em", así escalan solos en móvil y escritorio. */
.hero__title-loc, .hero__title-sub { display: block; }
.hero__title-loc { font-size: .62em; margin-top: 4px; letter-spacing: 1px; }
.hero__title-sub { font-size: .40em; margin-top: 14px; font-weight: 600; letter-spacing: .3px; color: rgba(255,255,255,.92); }
.hero__text { font-size: 1.15rem; margin: 22px 0 32px; max-width: 600px; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ FEATURES ============ */
.features { background: var(--navy); padding: 54px 0; }
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature {
  background: rgba(255,255,255,.05); color: #fff; padding: 30px 24px; text-align: center;
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); transition: all .25s ease;
}
.feature:hover { background: rgba(255,255,255,.09); border-color: rgba(229,0,81,.45); transform: translateY(-4px); }
.feature svg { color: var(--orange); margin-bottom: 12px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; color: rgba(255,255,255,.7); }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section--alt { background: var(--gray-50); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; color: var(--orange); margin-bottom: 12px; }
.section__title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: 16px; }
.section__lead { color: var(--gray-500); font-size: 1.05rem; }

/* ============ SERVICES ============ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 14px; background: var(--gray-50);
  display: grid; place-items: center; color: var(--orange); margin-bottom: 20px;
  transition: all .25s;
}
.service-card:hover .service-card__icon { background: var(--accent); color: #fff; }
.service-card:nth-child(2n) .service-card__icon { color: var(--navy); }
.service-card:nth-child(2n):hover .service-card__icon { background: var(--navy); color: #fff; }
.service-card h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--gray-500); }
.service-card--cta {
  background: var(--navy); color: #fff; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 14px; border: none;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255,255,255,.8); }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about__imgbox {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: grid; place-items: center; color: rgba(255,255,255,.5); box-shadow: var(--shadow-md);
}
.about__imgbox svg { color: var(--orange); }
.about__logo { width: 68%; max-width: 320px; height: auto; position: relative; z-index: 0; }
.about__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transform: scale(1.05); transition: opacity 1.3s ease, transform 1.5s ease; }
.about__photo.is-active { opacity: 1; transform: scale(1); }
.about__imgbox p { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; margin-top: 10px; letter-spacing: 1px; }
.about__body .section__title { text-align: left; }
.about__body > p { color: var(--gray-700); margin-bottom: 16px; }

.stats { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 30px; }
.stat { text-align: left; }
.stat__num, .stat__suffix { font-family: 'Barlow Condensed', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--orange); line-height: 1; }
.stat__label { display: block; font-size: .82rem; color: var(--gray-500); margin-top: 6px; font-weight: 500; }

/* Valores (chips) */
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 24px; }
.value-chip {
  display: inline-block; padding: 7px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600;
  color: var(--navy); background: #fff; border: 1.5px solid var(--gray-200);
}
.section--alt .value-chip { background: #fff; }
.value-chip:nth-child(2n) { color: var(--accent); border-color: rgba(229,0,81,.25); }
.about__closing { font-weight: 600; color: var(--navy); margin-bottom: 18px; }

/* Misión */
.mission {
  margin-top: 48px; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 40px 44px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.mission::after {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 8px; background: var(--accent);
}
.mission .section__eyebrow { color: var(--accent); }
.mission__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 14px; }
.mission p { color: rgba(255,255,255,.85); margin-bottom: 12px; max-width: 900px; }

/* Proceso "¿Cómo trabajamos?" */
.process { margin-top: 54px; text-align: center; }
.process__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 30px; }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.step__num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.6rem;
}
.step p { color: var(--gray-700); font-weight: 500; }
@media (max-width: 768px) { .process__steps { grid-template-columns: 1fr; } }

/* ============ DOWNLOADS ============ */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.download-card {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--gray-200);
  border-left: 5px solid var(--cat, var(--accent));
  border-radius: var(--radius); padding: 20px 22px; transition: all .2s; box-shadow: var(--shadow-sm);
}
.download-card:hover { border-color: var(--accent); border-left-color: var(--cat, var(--accent)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.download-card__icon {
  width: 50px; height: 50px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.download-card__body { display: flex; flex-direction: column; flex: 1; }
.download-card__body strong { color: var(--navy); font-size: 1.05rem; }
.download-card__body small { color: var(--gray-500); }
.download-card__arrow { color: var(--cat, var(--accent)); font-size: 1.4rem; font-weight: 700; }

/* ============ SECTORES (gráfico) ============ */
.sectors-g { padding: 84px 0; background: var(--navy); color: #fff; }
.sectors-g .section__title { color: #fff; }
.sectors-g .section__lead { color: rgba(255,255,255,.75); }
.sectors-g__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.sector-group { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 24px; }
.sector-group h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.55rem; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.sector-group h3 svg { color: var(--accent); flex-shrink: 0; }
.sector-group ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.sector-group li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: 1.02rem; }
.sector-group li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.sectors-g__cta {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 24px 28px; background: var(--accent); color: #fff; border-radius: var(--radius);
  text-decoration: none; text-align: center; transition: all .2s;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1.4rem;
}
.sectors-g__cta strong { font-weight: 700; }
.sectors-g__cta:hover { background: var(--accent-dark); transform: translateY(-2px); }
.sectors-g__cta svg { flex-shrink: 0; }
@media (max-width: 860px) { .sectors-g__groups { grid-template-columns: 1fr; } }

/* ============ CONDICIONES DE VENTA (desplegable discreto) ============ */
.conditions { max-width: 620px; margin: 22px auto 0; text-align: center; }
.conditions__list { text-align: left; }
.conditions summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 4px; font-size: .82rem; font-weight: 600; color: var(--gray-500);
  transition: color .2s;
}
.conditions summary::-webkit-details-marker { display: none; }
.conditions summary:hover { color: var(--navy); }
.conditions summary > svg { width: 14px; height: 14px; color: var(--navy); flex-shrink: 0; }
.conditions__arrow { color: var(--navy); font-size: 1rem; font-weight: 700; line-height: 1; transition: transform .25s ease; }
.conditions[open] .conditions__arrow { transform: rotate(180deg); }
.conditions__list { list-style: none; margin: 6px 0 0; padding: 12px 16px; background: var(--gray-50); border-radius: 8px; }
.conditions__list li { padding: 6px 0; font-size: .82rem; color: var(--gray-500); line-height: 1.55; }
.conditions__list li + li { border-top: 1px solid var(--gray-200); margin-top: 2px; padding-top: 8px; }
.conditions__list li strong { color: var(--gray-700); font-weight: 600; }

/* ============ PREGUNTAS FRECUENTES ============ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item:hover { border-color: #c9d2e4; box-shadow: 0 4px 14px rgba(38,50,114,.07); }
.faq__item[open] { border-color: var(--navy); box-shadow: 0 6px 18px rgba(38,50,114,.09); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 22px; font-weight: 600; font-size: 1.02rem; color: var(--navy); line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gray-50); color: var(--accent); font-size: 1.25rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: transform .25s ease, background .2s;
}
.faq__item[open] summary::after { content: "\2212"; transform: rotate(180deg); background: var(--accent); color: #fff; }
.faq__answer { padding: 0 22px 18px; }
.faq__answer p { color: var(--gray-500); font-size: .96rem; line-height: 1.65; margin: 0; }
.faq__answer strong { color: var(--gray-700); font-weight: 600; }
.faq__answer a { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) {
  .faq__item summary { padding: 14px 16px; font-size: .95rem; }
  .faq__answer { padding: 0 16px 15px; }
}

/* ============ CTA BAND (bloque de marca) ============ */
.cta-band { background: var(--accent); color: #fff; padding: 50px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 4px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band__phone { background: #fff; color: var(--accent); }
.cta-band__phone:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.cta-band__contact { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band__contact:hover { background: #fff; color: var(--accent); }
.cta-band__wa { background: #25d366; color: #fff; }
.cta-band__wa:hover { background: #1da851; transform: translateY(-2px); }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.contact__info h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 22px; }
.contact__row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; color: var(--gray-700); transition: color .2s; }
.contact__row:hover { color: var(--orange); }
.contact__row svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact__row small { display: block; color: var(--gray-500); font-weight: 400; font-size: .78rem; margin-top: 2px; }
.contact__hours { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--gray-200); }
.contact__hours h4 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.contact__hours ul { list-style: none; }
.contact__hours li { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; color: var(--gray-700); }
.contact__hours li span:last-child { font-weight: 600; color: var(--navy); }
.contact__social { display: flex; gap: 10px; margin-top: 22px; }
.contact__social a, .footer__social a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gray-100); color: var(--navy); transition: all .2s;
}
.contact__social a:hover, .footer__social a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }

/* ============ FORM ============ */
.contact__form { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  font-family: inherit; font-size: .95rem; padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; transition: border-color .2s; background: var(--gray-50); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.form-group textarea { resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--gray-500); margin-bottom: 18px; }
.form-check input { margin-top: 3px; accent-color: var(--orange); }
.form-check a { color: var(--orange); text-decoration: underline; }
.form-status { margin-top: 14px; font-size: .92rem; text-align: center; font-weight: 600; }
.form-status.is-ok { color: #1a8a4a; }
.form-status.is-error { color: #d23b3b; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer__col > p { margin-top: 14px; font-size: .92rem; line-height: 1.7; }
.footer__col h4 { color: #fff; font-size: 1.25rem; margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: var(--orange); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { background: rgba(255,255,255,.1); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom a:hover { color: var(--orange); }

/* ============ BOTÓN FLOTANTE WHATSAPP ============ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45); z-index: 95; transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,211,102,.6); }
@keyframes wa-pulse {
  0% { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ PÁGINAS LEGALES ============ */
.legal-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.legal-header .brand__logo { height: 38px; width: auto; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: .95rem; }
.legal-back:hover { color: var(--accent-dark); }
.legal-main { max-width: 820px; margin: 0 auto; padding: 54px 20px 72px; }
.legal-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--navy); margin-bottom: 8px; }
.legal-updated { color: var(--gray-500); font-size: .9rem; margin-bottom: 34px; }
.legal-main h2 { font-size: 1.45rem; color: var(--navy); margin: 32px 0 10px; }
.legal-main p, .legal-main li { color: var(--gray-700); line-height: 1.75; }
.legal-main ul { padding-left: 22px; margin: 10px 0; }
.legal-main li { margin-bottom: 6px; }
.legal-main a { color: var(--accent); text-decoration: underline; }
.legal-foot { border-top: 1px solid var(--gray-200); margin-top: 40px; padding-top: 22px; font-size: .9rem; color: var(--gray-500); }
/* Hueco a rellenar (resaltado para localizarlo fácil) */
.ph { background: #fff3cd; color: #7a5b00; padding: 1px 7px; border-radius: 4px; font-weight: 600; }

/* ============ TO TOP ============ */
.to-top {
  position: fixed; right: 28px; bottom: 92px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s; z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Barra superior: mostrar "Murcia" (corto) en vez de la dirección larga */
  .topbar { font-size: .8rem; }
  .topbar__addr-full { display: none; }
  .topbar__addr-short { display: inline; }

  /* Hero centrado y más ordenado en móvil */
  .hero { min-height: 560px; }
  .hero__content { text-align: center; }
  .hero__eyebrow { letter-spacing: 1px; font-size: .72rem; }
  /* En móvil el subtítulo se separa un pelín menos */
  .hero__title-sub { margin-top: 12px; }
  .hero__text { margin-left: auto; margin-right: auto; font-size: 1.02rem; }
  .hero__cta { justify-content: center; }

  /* Centrado general de bloques en móvil */
  .service-card { text-align: center; }
  .service-card__icon { margin-left: auto; margin-right: auto; }

  .about__body { text-align: center; }
  .about__body .section__title { text-align: center; }
  .stats { justify-content: center; }
  .stat { text-align: center; }
  .values { justify-content: center; }

  .mission { text-align: center; }

  .cta-band__inner { text-align: center; justify-content: center; }
  .cta-band__actions { justify-content: center; width: 100%; }

  .footer__grid { text-align: center; }
  .footer__col .brand--footer { justify-content: center; }

  .nav {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.2); padding: 80px 26px 26px;
    transition: right .3s ease; z-index: 110;
  }
  .nav.is-open { right: 0; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
  .nav__eco-item { margin-top: 16px; justify-content: center; }
  .nav__eco { display: block; text-align: center; }
  .nav__toggle { display: flex; }
  .nav__close { display: block; position: absolute; top: 22px; right: 24px; font-size: 2rem; background: none; border: none; color: var(--navy); cursor: pointer; line-height: 1; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 105; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .btn--phone span, .btn--phone { font-size: .85rem; padding: 9px 14px; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 34px; }
  .sectors-g { padding: 44px 0; }
  .features { padding: 40px 0; }
  .mission { margin-top: 32px; padding: 30px 26px; }
  .process { margin-top: 36px; }
  .hero__content { padding: 56px 20px; }
}

/* ============ ECOSOURCE (otra empresa del cliente — agricultura sostenible) ============ */
/* Botón Ecosource en el nav (verde, con etiqueta "Nuevo") */
.nav__eco-item { display: flex; align-items: center; }
.nav__eco { position: relative; display: inline-block; color: #6ba32e; padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.nav__eco:hover { background: #eff7e3; color: #3d6b1c; }
.nav__eco-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #fff; color: #e50051; border: 1px solid #e50051; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.12); }

.ecosurf { padding: 44px 0; background: var(--gray-50); }
/* Barra fina verde plegable (summary de <details>) */
.eco-toggle { max-width: 980px; margin: 0 auto; }
.eco-bar { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 14px; background: #92c64b; color: #2e5210; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 1.02rem; transition: background .2s; }
.eco-bar::-webkit-details-marker { display: none; }
.eco-bar:hover { background: #85bb3e; }
.eco-bar__label { display: inline-flex; align-items: center; gap: 10px; }
.eco-bar__leaf { flex-shrink: 0; }
.eco-bar strong { font-weight: 800; }
.eco-bar__chevron { flex-shrink: 0; transition: transform .25s; }
.eco-toggle[open] .eco-bar__chevron { transform: rotate(180deg); }
.ecosurf__card { background: #fff; color: #3d6b1c; border: 2px solid #92c64b; border-radius: 20px; padding: 30px 40px; margin-top: 14px; }
.ecosurf__head { text-align: center; max-width: 620px; margin: 0 auto 18px; }
.eco-banner { border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.eco-banner__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.eco-banner__row img { width: 100%; height: 118px; object-fit: cover; object-position: center; display: block; }
.eco-banner__band { background: #92c64b; padding: 16px 14px; display: flex; align-items: center; justify-content: center; }
.eco-banner__chip { flex: 1; background: #fff; border-radius: 12px; padding: 16px 24px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.eco-banner__chip img { width: 100%; height: auto; max-width: 100%; display: block; }
.ecosurf__subtitle { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 600; color: #6ba32e; letter-spacing: .5px; margin-top: 10px; }
.ecosurf__motto { font-size: 1.12rem; font-weight: 700; color: #3d6b1c; margin-top: 10px; }
.ecosurf__desc { color: #557d2f; font-size: .96rem; margin-top: 5px; }
.ecosurf__contact { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.ecosurf__contact-label { font-weight: 600; color: #3d6b1c; }
.eco-btn { display: inline-flex; align-items: center; gap: 8px; background: #3d6b1c; border: 1.5px solid #3d6b1c; color: #fff; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: all .2s; }
.eco-btn:hover { background: #fff; color: #3d6b1c; }
.eco-btn svg { flex-shrink: 0; }
.ecosurf__body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.ecosurf__media img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; display: block; }
.ecosurf__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.eco-point { display: flex; gap: 13px; align-items: center; background: #f5faec; border: 1px solid #e0efcc; border-radius: 12px; padding: 12px 15px; }
.eco-point__n { flex-shrink: 0; width: 35px; height: 35px; border-radius: 50%; background: #92c64b; color: #2e5210; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.18rem; display: flex; align-items: center; justify-content: center; }
.eco-point__txt h3 { font-size: 1.12rem; color: #3d6b1c; margin: 1px 0; }
.eco-point__txt p { color: #557d2f; font-size: .92rem; }
.ecosurf__services { margin-top: 18px; background: #eff7e3; color: #3d6b1c; border: 1px solid #cfe6a8; border-radius: 12px; padding: 12px 22px; text-align: center; font-size: .98rem; }
.ecosurf__services strong { font-weight: 700; }
.eco-alquiler { background: #92c64b; color: #2e5210; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
@media (max-width: 820px) { .ecosurf__card { padding: 24px 20px; border-radius: 16px; } .ecosurf__body { grid-template-columns: 1fr; gap: 18px; } .ecosurf__media img { max-height: 210px; } .eco-bar { font-size: .95rem; padding: 12px 18px; gap: 10px; } }
@media (max-width: 600px) {
  .eco-banner__row img { height: 84px; }
  .eco-banner__band { padding: 12px 10px; }
  .eco-banner__chip { padding: 12px 16px; border-radius: 10px; }
  .ecosurf__contact-label { flex-basis: 100%; text-align: center; }
  .eco-btn { width: 100%; justify-content: center; }
  .eco-bar { position: relative; padding: 12px 40px; justify-content: center; }
  .eco-bar__label { font-size: .9rem; justify-content: center; }
  .eco-bar__label > span { display: block; text-align: center; }
  .eco-bar__chevron { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
  .eco-toggle[open] .eco-bar__chevron { transform: translateY(-50%) rotate(180deg); }
}
