/* ============================================================
   LACECON — Laboratorio Centro Construcción
   style.css — Estilos principales
   Paleta: Rojo #D51B24 · Gris oscuro #4D4C4C · Gris medio #595854
   Fuente logo: LEMON MILK (web usa Barlow Condensed + Barlow)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@300;400;500;600&display=swap');

/* ---- VARIABLES ---- */
:root {
  --red:       #D51B24;
  --red-dark:  #b0151d;
  --red-light: #fff0f0;
  --gray-dark: #4D4C4C;
  --gray-mid:  #595854;
  --gray-light:#f5f5f5;
  --white:     #ffffff;
  --border:    #e0e0e0;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --radius:    6px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-dark); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- UTILIDADES ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section--bg { background: var(--gray-light); }
.section__title { font-family: var(--font-head); font-size: 32px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dark); margin-bottom: 8px; }
.section__line { width: 44px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 20px; }
.section__sub { font-size: 17px; color: var(--gray-mid); max-width: 620px; line-height: 1.75; margin-bottom: 32px; }
.btn { display: inline-block; padding: 11px 26px; border-radius: var(--radius); font-size: 15px; font-weight: 600; letter-spacing: 0.07em; cursor: pointer; transition: all var(--transition); border: none; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--red-light); }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: 1100px; margin: 0 auto;
}
.navbar__logo img { height: 68px; width: auto; }
.navbar__links { display: flex; align-items: center; gap: 28px; }
.navbar__links a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-dark);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--red); }
.navbar__cta {
  background: var(--red); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 14px !important; letter-spacing: 0.08em !important;
  transition: background var(--transition) !important;
  display: flex; align-items: center; gap: 7px;
}
.navbar__cta:hover { background: var(--red-dark) !important; }
.navbar__cta svg { width: 14px; height: 14px; }

/* Hamburger (mobile) */
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.navbar__hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-dark); border-radius: 2px; transition: all var(--transition); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(120deg, #f8f8f8 55%, #fff5f5 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 28px 60px;
  display: flex; align-items: center; gap: 48px;
  max-width: 1100px; margin: 0 auto;
}
.hero__text { flex: 1; }
.hero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.hero__title { font-family: var(--font-head); font-size: 54px; font-weight: 700; line-height: 1.1; letter-spacing: 0.03em; color: var(--gray-dark); margin-bottom: 20px; }
.hero__title span { color: var(--red); }
.hero__desc { font-size: 17px; color: var(--gray-mid); line-height: 1.75; max-width: 480px; margin-bottom: 28px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual { flex-shrink: 0; width: 180px; opacity: 0.15; }

/* ---- FRANJA ROJA ---- */
.strip { background: var(--red); padding: 16px 28px; }
.strip__inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 0; justify-content: space-between; align-items: center; }
.strip__item { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; flex: 1; justify-content: center; }
.strip__item + .strip__item { border-left: 1px solid rgba(255,255,255,0.25); }
.strip__icon { width: 18px; height: 18px; opacity: 0.85; }

/* ---- SERVICIOS ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--red); border-radius: var(--radius);
  padding: 22px 20px; transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card__icon { width: 36px; height: 36px; background: var(--red-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-card__icon svg { width: 18px; height: 18px; }
.service-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; color: var(--gray-dark); margin-bottom: 8px; text-transform: uppercase; }
.service-card p { font-size: 15px; color: var(--gray-mid); line-height: 1.65; }

/* ---- NOSOTROS ---- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__img { background: var(--gray-light); border-radius: var(--radius); height: 280px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.about__img img { max-height: 120px; opacity: 0.6; }
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; background: var(--red-light); color: var(--red); border-radius: 4px; padding: 4px 10px; letter-spacing: 0.05em; }

/* ---- CONTACTO ---- */
.contact-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.contact-card__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.contact-card p { font-size: 15px; color: var(--gray-mid); line-height: 1.7; }
.contact-card a { color: var(--red); }

/* Formulario de contacto */
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 5px; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; font-family: var(--font-body); color: var(--gray-dark); background: #fafafa; transition: border-color var(--transition); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-check input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--red); width: 15px; height: 15px; }
.form-check label { font-size: 14px; color: var(--gray-mid); line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-check a { color: var(--red); text-decoration: underline; }
.contact-form__btn { width: 100%; }
.contact-form__feedback { font-size: 15px; margin-top: 12px; min-height: 18px; }
.contact-form__feedback.ok { color: #2a7a2a; }
.contact-form__feedback.err { color: var(--red); }

/* ---- FOOTER ---- */
.footer { background: var(--gray-dark); padding: 24px 28px; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__logo img { height: 48px; width: auto; opacity: 0.85; filter: brightness(0) invert(1); }
.footer__logo:hover img { opacity: 1; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; padding: 48px 20px 40px; }
  .hero__visual { display: none; }
  .hero__title { font-size: 42px; }
  .strip__inner { flex-wrap: wrap; gap: 12px; }
  .strip__item + .strip__item { border-left: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__links.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--red); padding: 20px 28px; gap: 16px; box-shadow: var(--shadow); }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ---- BANNER COOKIES ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--gray-dark); color: var(--white);
  padding: 16px 28px; display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}
.cookie-banner.hidden { display: none; }
.cookie-banner__text { flex: 1; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.85); min-width: 240px; }
.cookie-banner__text strong { color: var(--white); }
.cookie-banner__text a { color: var(--red); text-decoration: underline; white-space: nowrap; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 9px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border: none; transition: all var(--transition); }
.cookie-btn--primary { background: var(--red); color: var(--white); }
.cookie-btn--primary:hover { background: var(--red-dark); }
.cookie-btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.cookie-btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
