/* ─── RESET & VARIABLES ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --rojo:    #5879DD;
  --rojo-d:  #3a5bbf;
  --gris:    #1a1a1a;
  --gris-m:  #2e2e2e;
  --gris-c:  #f4f3f1;
  --arena:   #e8e2d9;
  --dorado:  #c49a2a;
  --blanco:  #ffffff;
  --text:    #1a1a1a;
  --sans:    'Barlow', sans-serif;
  --display: 'Barlow Condensed', sans-serif;
  --radio:   8px;
  --sombra:  0 4px 24px rgba(0,0,0,.09);
}
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); color: var(--text); background: var(--blanco); overflow-x: hidden; }
img   { display: block; max-inline-size: 100%; }
a     { text-decoration: none; color: inherit; }
svg   { overflow: visible; }

/* ─── LOGO IMAGEN ────────────────────────────────────────────── */
.logo-img {
  block-size: 52px;
  inline-size: auto;
  display: block;
  object-fit: contain;
}
.logo-img--footer {
  block-size: 44px;
  filter: brightness(0) invert(1);  /* blanco sobre fondo oscuro */
  opacity: .85;
}

/* ─── HERO BANNER ─────────────────────────────────────────────── */
.hero-banner {
  margin-block-end: .5rem;
}
.hero-banner img {
  max-block-size: 120px;
  inline-size: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.4));
}

/* ─── TOPBAR ──────────────────────────────────────────────────── */
.topbar {
  background: var(--gris);
  color: #aaa;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .05em;
  padding: .45rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a       { color: #ccc; transition: color .2s; }
.topbar a:hover { color: var(--dorado); }
.topbar-left    { display: flex; align-items: center; gap: 1.4rem; }
.topbar-left span { display: flex; align-items: center; gap: .35rem; }
.topbar .redes  { display: flex; gap: .8rem; align-items: center; }
.topbar .redes a { display: flex; align-items: center; gap: .3rem; }
.topbar .redes svg { inline-size: 14px; block-size: 14px; fill: currentColor; flex-shrink: 0; }

/* ─── HEADER ──────────────────────────────────────────────────── */
header {
  background: var(--blanco);
  border-block-end: 3px solid var(--rojo);
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
}
.logo-wrap { display: flex; align-items: center; gap: .9rem; }
.logo-icon {
  inline-size: 48px; block-size: 48px;
  background: var(--rojo);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { inline-size: 28px; block-size: 28px; fill: white; }
.logo-text h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--gris);
}
.logo-text span {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 600;
}
nav { display: flex; gap: .15rem; }
nav a {
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem .85rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
  color: var(--gris);
}
nav a:hover { background: var(--rojo); color: white; }
.header-tel {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--rojo);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.header-tel svg { inline-size: 16px; block-size: 16px; fill: var(--rojo); flex-shrink: 0; }

/* ─── BOTONES ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--rojo);
  color: white;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .92rem;
  padding: .72rem 1.5rem;
  border-radius: 4px;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: var(--rojo-d); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.22);
  color: white;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .92rem;
  padding: .7rem 1.5rem;
  border-radius: 4px;
  transition: border-color .2s, background .2s;
  cursor: pointer; display: inline-block;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.06); }

.btn-wa {
  background: #25d366;
  color: white;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .88rem;
  padding: .7rem 1.3rem;
  border-radius: 4px;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-wa:hover { background: #1da851; transform: translateY(-1px); }
.btn-wa svg { inline-size: 16px; block-size: 16px; fill: white; }

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  background: var(--gris);
  min-block-size: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(255,255,255,.018) 28px, rgba(255,255,255,.018) 30px);
  pointer-events: none;
}
.hero-copy {
  padding: 4.5rem 3rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--rojo);
  color: white;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 2px;
  inline-size: fit-content;
}
.hero-copy h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.0;
  color: white;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hero-copy h2 em { color: var(--dorado); font-style: normal; }
.hero-copy p { color: #aaa; font-size: 1rem; max-inline-size: 38ch; line-height: 1.65; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-block-start: .3rem; }
.hero-img {
  position: relative;
  overflow: hidden;
  min-block-size: 340px;
  /* sin fondo; sólo la imagen se muestra aquí */
  background: none;
}
.hero-img img {
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  opacity: .60;
  mix-blend-mode: normal;
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gris) 0%, transparent 45%);
}

/* ─── STRIP ───────────────────────────────────────────────────── */
.strip {
  background: var(--rojo);
  padding: .85rem 2rem;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: white;
  font-family: var(--display);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.strip-item svg { inline-size: 18px; block-size: 18px; fill: rgba(255,255,255,.75); flex-shrink: 0; }

/* ─── SECCIONES GENÉRICAS ─────────────────────────────────────── */
.section       { padding: 4.5rem 2rem; }
.section-inner { max-inline-size: 1200px; margin: 0 auto; }
.section-head  {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-block-end: 2.5rem;
  flex-wrap: wrap;
}
.section-head h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gris);
  white-space: nowrap;
}
.section-head .line { flex: 1; block-size: 2px; background: var(--arena); min-inline-size: 40px; }
.section-head .tag {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 700;
  white-space: nowrap;
}

/* ─── RUBROS ──────────────────────────────────────────────────── */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
}
.rubro-card {
  background: var(--gris-c);
  border-radius: var(--radio);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.rubro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
  border-color: var(--rojo);
}
.rubro-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
}
.rubro-img img {
  inline-size: 100%; block-size: 100%;
  object-fit: contain;
  transition: transform .35s;
}
.rubro-card:hover .rubro-img img { transform: scale(1.07); }
.rubro-label {
  padding: .7rem 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gris);
  border-block-start: 1px solid var(--arena);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rubro-label::after { content: '→'; color: var(--rojo); }

/* ─── OFERTA DESTACADA ────────────────────────────────────────── */
.ofertas       { background: var(--gris); padding: 4.5rem 2rem; }
.oferta-banner {
  max-inline-size: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.oferta-copy {
  background: var(--rojo);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}
.oferta-copy .eyebrow {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 700;
}
.oferta-copy h3 {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  line-height: 1;
  letter-spacing: .03em;
}
.oferta-copy p { color: rgba(255,255,255,.8); font-size: .97rem; line-height: 1.6; }
.oferta-img {
  overflow: hidden;
  background: #111;
  background-image: radial-gradient(ellipse at center, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 68%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 320px;
  padding: 2rem;
}
.oferta-img img { max-block-size: 340px; inline-size: auto; object-fit: contain; }

/* ─── CONTACTO / UBICACIÓN ────────────────────────────────────── */
.contacto      { background: var(--gris-c); padding: 4.5rem 2rem; }
.contacto-grid {
  max-inline-size: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.info-block    { display: flex; flex-direction: column; gap: 1.6rem; }
.info-item     { display: flex; gap: .9rem; align-items: flex-start; }
.info-icon {
  inline-size: 42px; block-size: 42px;
  background: var(--rojo);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { inline-size: 20px; block-size: 20px; fill: white; }
.info-text h4 {
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-block-end: .2rem;
  color: var(--gris);
}
.info-text p, .info-text a { font-size: .92rem; color: #555; line-height: 1.55; }
.info-text a   { color: var(--rojo); transition: opacity .2s; }
.info-text a:hover { opacity: .75; }
.qr-wrap {
  background: white;
  padding: 1.4rem;
  border-radius: var(--radio);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  box-shadow: var(--sombra);
  border: 1px solid var(--arena);
  inline-size: fit-content;
}
.qr-wrap img { inline-size: 150px; block-size: 150px; image-rendering: pixelated; }
.qr-wrap span {
  font-family: var(--display);
  font-size: .73rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}

/* ─── FORMULARIO ──────────────────────────────────────────────── */
.form-card {
  background: white;
  border-radius: 10px;
  padding: 2.2rem 2.4rem;
  box-shadow: var(--sombra);
}
.form-card h4 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-block-end: 1.4rem;
  color: var(--gris);
}
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field       { display: flex; flex-direction: column; gap: .3rem; margin-block-end: .9rem; }
.field label {
  font-family: var(--display);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #666;
}
.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--arena);
  border-radius: 5px;
  padding: .62rem .88rem;
  font-family: var(--sans);
  font-size: .93rem;
  color: var(--text);
  background: var(--gris-c);
  transition: border-color .2s, background .2s;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--rojo); background: white; }
.field textarea     { resize: vertical; min-block-size: 95px; }
.form-footer { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-block-start: .4rem; }
.form-footer .btn-primary { flex: 1; text-align: center; font-size: .97rem; padding: .82rem 1rem; }
.form-footer .btn-wa      { flex: 1; justify-content: center; font-size: .88rem; }
.form-msg {
  padding: .75rem 1rem;
  border-radius: 5px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  margin-block-end: 1rem;
}
.form-msg.ok    { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-msg.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--gris); color: #888; padding: 3rem 2rem 1.4rem; }
.footer-inner {
  max-inline-size: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-block-end: 2rem;
  border-block-end: 1px solid #333;
}
.footer-brand .logo-text h1 { color: white; font-size: 1.4rem; }
.footer-brand p { font-size: .88rem; line-height: 1.65; margin-block-start: .7rem; color: #666; }
.footer-redes   { display: flex; gap: .6rem; margin-block-start: 1rem; }
.social-btn {
  inline-size: 34px; block-size: 34px;
  background: #333;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social-btn:hover { background: var(--rojo); }
.social-btn svg { inline-size: 15px; block-size: 15px; fill: white; }
.footer-col h5 {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: white;
  margin-block-end: .9rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul li a { font-size: .88rem; transition: color .2s; color: #888; }
.footer-col ul li a:hover { color: var(--dorado); }
.footer-bottom {
  max-inline-size: 1200px;
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: #555;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero                { grid-template-columns: 1fr; }
  .hero-img            { display: none; }
  .hero-copy           { padding: 3.5rem 2rem; }
  .oferta-banner       { grid-template-columns: 1fr; }
  .contacto-grid       { grid-template-columns: 1fr; }
  .footer-inner        { grid-template-columns: 1fr; gap: 2rem; }
  .form-row            { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar              { flex-direction: column; gap: .4rem; font-size: .76rem; }
  header               { flex-wrap: wrap; }
  nav                  { display: none; }
  .rubros-grid         { grid-template-columns: repeat(2, 1fr); }
  .strip               { gap: 1rem; }
  .hero-copy           { padding: 2.5rem 1.5rem; }
}
