@charset "UTF-8";
/* =========================
   Base / Reset
   ========================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}
a { text-decoration: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Make media fluid by default without stretching */
img, video, iframe { max-width: 100%; height: auto; }

/* =========================
   Header
   ========================= */
header {
  background: #eee;
  padding: 0.5rem 2rem;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { height: 60px; }
.btn-contacto {
  background: #c00;
  color: #fff;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  border-radius: 3px;
  transition: background .3s ease;
}
.btn-contacto:hover { background: #900; }

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(176, 58, 58, 0.6) url("media/heroimg.jpg") center/cover no-repeat;
  background-blend-mode: multiply;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  position: absolute;
  bottom: 1rem;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1rem;
  z-index: 2;
}
.hero-text {
  flex: 1;
  background: rgba(0,0,0,0.0);
  padding: 0.5rem;
  border-radius: 4px;
}
.hero-text h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.hero-icon {
  display: block !important;
  flex: 0 0 auto;
}
.hero-icon img {
  display: block;
  width: clamp(44px, 6vw, 80px);                /* scales with screen */
  height: auto;
}

/* =========================
   Sobre Nosotros
   ========================= */
.sobre-nosotros {
  text-align: center;
  padding: 3rem 1rem;
}
.sobre-nosotros h2 {
  color: #b00;
  font-size: 4rem;
  margin: 20px 15px;
}
.sobre-nosotros hr {
  width: 90%;
  height: 2px;
  background: #000;
  border: none;
  margin: 1rem auto 2rem;
}
.columns {
  color:#000;
  text-align: left;
  justify-content: center;
  columns: 3 250px;
  column-gap: 3rem;
}
.columns p {
  text-align: justify;
  text-justify: inter-word;
  margin-top: 0;
  font-size: 18px;
}
.columns h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #b00;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
  padding: 1rem;
  break-inside: avoid;
  break-before: column;
}

/* =========================
   Productos
   ========================= */
.productos {
  background: #111;
  color: #fff;
  padding: 3rem 2rem;
}
.productos .title hr {
  width: 88%;
  height: 1px;
  background: #fff;
  border: none;
  margin: 1rem auto 2rem;
}
.productos .title h2 { 
  font-size: 4rem;
  margin-bottom: .5rem;
  text-align: center;
  font-weight: normal;
}
.productos .title p {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 4rem;
}
.producto {
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 2rem 6rem;
  gap: 2rem;
}
.producto .texto p { text-align: left; max-width: 400px; }
.producto .texto h3{ font-size: 2rem; text-align: left; max-width: 350px; }
.producto .numero { color: #c00; font-size: 1.5rem; display: block; margin-bottom: 1rem; }
.producto img {
  height: 300px;
  border-radius: 3px;
  float: right;
  gap: 1rem;
  padding-top: 4rem;
}
.producto hr{
  width: 255%;
  height: 1px;
  background: #fff;
  border: none;
  margin: 1rem auto 2rem;
}

/* Don Miguel / Calidad blocks */
.donmiguel { background: #fff; padding: 3rem 2rem; text-align: center; }
.refleja h3 { font-size: 1.5rem; font-weight: normal; color: #000; max-width: 90%; margin: 0 auto; line-height: 1.5; }
.calidad { background: #fff; padding: 3rem 2rem; text-align: center; }
.seguridad h3 { font-size: 3rem; font-weight: bold; color: #b00; max-width: 90%; margin: auto; line-height: 1.5; }

/* =========================
   Galería 
   ========================= */

/* === GALERÍA (responsive, clean gutters) === */
.galeria {
  background: #c00;
  color: #fff;
  padding: 2rem clamp(1rem, 4vw, 5rem);
  text-align: left;
}

.galeria h1 { margin-bottom: 1rem; font-weight: normal; }

.galeria h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  margin: 1rem 0 2rem;
}

/* Grid: auto-fill columns; remove fixed widths/rows */
.galeria .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;                    /* clean red separators */
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Tiles: consistent aspect, cover, smooth hover */
.galeria img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;                 /* consistent tile height; adjust if you prefer */
  object-fit: cover;
  border-radius: 8px;
  transition: transform .5s ease;
  display: block;
}

.galeria img:hover {
  transform: scale(1.03);
  z-index: 2;
}

/* Tablet: 2 columns if space is tight */
@media (max-width: 1024px) {
  .galeria .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Phone: single column, comfy spacing */
@media (max-width: 767px) {
  .galeria { padding: 1.25rem; }
  .galeria h2 { font-size: clamp(1.35rem, 5.2vw, 2rem); }
  .galeria .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }
}



/* =========================
   Compromiso (clean + responsive)
   ========================= */
.compromiso { padding: 1rem 1rem; }
.compromiso h2 {
  color: #b00;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 3rem;
}

/* Use a single grid for the row: text | icon | text */
.compromiso .container { display: block; } /* avoid nested grids fighting */
.compromiso .texto {
  display: grid;
  grid-template-columns: minmax(0,1fr) 96px minmax(0,1fr); /* <-- shrinks instead of wrapping */
  gap: 2rem 2.5rem;
  align-items: start;
  color: #000;
  box-sizing: border-box;
}

.texto { font-size: 18px; }

/* Remove fixed sizes that caused the wrap */
.p1, .p2 {
  width: 100%;
  height: auto;
  margin: 0;
}

/* Center the emoji column and size the icon reasonably */
.emoji {
  margin: 0 auto;
  align-self: start;
  justify-self: center;
}
.emoji img {
  display: block;
  width: 96px;      /* adjust 80–110px to taste */
  height: auto;
}

/* Compromiso video – responsive 16:9, centered */
.compromiso .video {
  display: block;
  width: min(1100px, 92vw);
  margin: 3rem auto 0;
  padding: 0 0;                 /* no extra vertical padding around the iframe */
}

.compromiso .video iframe {
  width: 100%;
  height: auto !important;      /* override any fixed heights */
  aspect-ratio: 16 / 9;         /* keep proper proportion */
  border: 0;
  display: block;
}

/* Tablet & Mobile: stack everything  */
@media (max-width: 1024px) {
  .compromiso .texto {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .emoji img { width: 72px; }
}

/* =========================
   Contacto
   ========================= */
.contacto { 
  height: auto; color: #000;
  display: grid; grid-template-columns: auto auto auto;
  background: lightgray; margin-bottom: 5rem;
  margin-left: 8rem; margin-right: 8rem;
}
.contacto-info { background: rgb(205, 200, 200); }
.left img { width: 100%; height: 100%; border-radius: 1px; margin-right: 25rem; }
.preguntas h2 span { color: #b00; }
.preguntas p { line-height: 1.6; font-size: 1rem; color: #222; width: 60%; }
.top-bar{ display: flex; }
.call{ margin-left: 1rem; width: 80%; font-size: 20px; border-right: 4px solid white; text-align: center; }
.call .llamanos{ font-size: 1.5rem; font-weight: bold; text-align: center; }
.email{ width: 100%; font-size: 20px; text-align: center; }
.email .correo{ font-size: 1.5rem; font-weight: bold; text-align: center; }
.preguntas{ padding-top: 2rem; width: 130%; border-top: 4px solid white; }
.preguntas h2 { font-size: 3rem; font-weight: 800; color: #111; margin-right: 25%; text-align: center; }
.preguntas p{ font-size:20px; margin-left: 5rem; }

/* =========================
   Footer
   ========================= */
/* ===== FOOTER (for your original HTML: footer-1..footer-6) ===== */
.footer-container{
  background: dimgray;
  color: #fff;
  padding: 3rem 0 4rem;
}

.footer{
  max-width: 1200px;
  margin: 0 auto;
  /* Mobile/tablet default layout */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Common text styles */
.footer .footer-heading h2{
  margin: 0 0 .75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer .footer-heading p,
.footer .footer-heading a,
.footer .footer-heading li,
.footer .footer-heading address{
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  text-decoration: none;
}
.footer a:hover{ text-decoration: underline; }

/* Logo (footer-1) */
 .footer .footer-1{
    justify-self: center;
    text-align: center;
  }
  .footer .footer-1 .logogrand img{
    width: clamp(260px, 60vw, 360px);
    height: auto;
  }

/* Map (footer-2) — responsive */
.footer .footer-2 iframe{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  display: block;
}

/* Social icons */
.footer .links img{
  width: 42px;
  height: 42px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
/* =========================
   Desktop (≥1025px)
   ========================= */
@media (min-width: 1025px){
  .footer{
    grid-template-columns: repeat(12, minmax(0,1fr));
    gap: 2rem 2.5rem;
    padding: 0;
    align-items: start;
  }

  /* Row 1: logo (1–6) | map (7–12) */
  .footer .footer-1{ grid-column: 1 / span 6; display:flex; align-items:center; }
  .footer .footer-2{ grid-column: 7 / span 6; }

  /* Row 2: four columns */
  .footer .footer-3{ grid-column: 1  / span 3; }  /* Síguenos */
  .footer .footer-4{ grid-column: 4  / span 3; }  /* ¡Contáctanos! */
  .footer .footer-5{ grid-column: 7  / span 3; }  /* Nuestra oficina */
  .footer .footer-6{ grid-column: 10 / span 3; }  /* Horario */

  /* Tweak desktop sizes a touch bigger */
  .footer .footer-heading h2{ font-size: 1.75rem; }
  .footer .footer-heading p,
  .footer .footer-heading a,
  .footer .footer-heading li{ font-size: 1.125rem; }
}

/* =========================
   Tablet & Mobile (≤1024px) – shared hero/footer tweaks
   ========================= */
@media (max-width: 1024px){
  /* Footer: stacked + centered brand */
  .footer .footer-heading{ text-align: center; }
  .footer .footer-1 .logogrand img{ max-width: 320px; width: 80%; }

  /* Hero: fill below header, keep icon visible */
  :root { --header-h: 72px; }
  .hero{
    height: calc(100svh - var(--header-h)) !important;
    min-height: calc(100dvh - var(--header-h));
  }
  .hero .overlay{
    background-size: cover;
    background-position: center;
  }
  .hero-content{
    position: absolute;
    left: 0; right: 0;
    bottom: max(1rem, env(safe-area-inset-bottom));
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: .5rem;
    padding: 0 1rem;
    z-index: 3;
  }
  .hero-text{
    background: rgba(0,0,0,.5);
    padding: .35rem .6rem;
    border-radius: 6px;
    max-width: calc(100% - 52px); /* leaves room for the icon */
  }
  .hero .hero-text h1,
  .hero h1{
    font-size: clamp(1.1rem, 4vw, 1.55rem) !important;
    line-height: 1.2 !important;
    margin: 0;
  }
  .hero-icon{ display: block !important; flex: 0 0 auto; }
  .hero-icon img{ width: 32px !important; height: auto; display: block; }
}

/* =========================
   Tablet only (768–1024px)
   ========================= */
@media (min-width: 768px) and (max-width: 1024px){
  .calidad { padding: 2rem 1.25rem; }
  .seguridad h3{
    font-size: clamp(1.6rem, 4.2vw, 2.25rem);
    line-height: 1.25;
    margin: 0 auto 1.25rem;
    max-width: 26ch;
    text-wrap: balance;
  }
	
	 /* Productos */
  .productos{ padding: 2rem 1rem; }
  .productos .title h2{ font-size: 2.2rem; }
  .productos .title p{ padding-bottom: 2rem; }
  .producto{ grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
  .producto .texto h3{ font-size: 1.5rem; max-width: 100%; }
  .producto .texto p{ max-width: 100%; }
  .producto .numero{ font-size: 1.25rem; }
  .producto img{
    display: inline-block;
    width: calc(50% - .5rem);
    height: auto;
    float: none;
    padding-top: 0;
    margin: 0 .5rem 1rem 0;
    vertical-align: top;
  }
  .producto img:nth-of-type(2n){ margin-right: 0; }
  .producto hr{ width: 100%; }

   /* Contacto — rounded card + stacked blocks */
  .contacto{
    margin: 1rem;
    padding: 0;
    background: lightgray;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }
  .contacto .left, .contacto .left img{ display: none !important; }
  .contacto > *{ background: transparent !important; }

  .top-bar{ display: flex; flex-direction: column; gap: 0; }
  .call, .email{
    width: 100%;
    padding: 1rem 1rem;
    margin: 0;
  }
  .call{ border-bottom: 2px solid rgba(255,255,255,.9); }
  .email{ border-bottom: 1px solid rgba(255,255,255,.9); }

  .call .llamanos,
  .email .correo{
    font-weight: 700;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    text-align: left;
  }
  .call p, .call a,
  .email p, .email a{
    font-weight: 400;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    text-align: left;
  }

  .preguntas{
    width: 100%;
    padding: 1rem 1.25rem;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.9);
  }
  .preguntas h2{
    text-align: left;
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
    font-weight: 800;
  }
  .preguntas p{
    margin: 0;
    font-weight: 400;
    font-size: clamp(.95rem, 4vw, 1.05rem);
    width: 90%;
    height: 20%;
  }

  /* Safety: prevent tiny horizontal scroll from full-bleed sections */
  html, body{ overflow-x: hidden; }

}

/* =========================
   Mobile (≤767px)
   ========================= */
@media (max-width: 767px){

  /* Sobre Nosotros: disable CSS columns */
  .sobre-nosotros{ padding: 1.5rem 1rem; }
  .sobre-nosotros hr{ width: 100%; }
  .columns{
    columns: initial; column-count: 1; column-gap: 0;
    display: grid; grid-template-columns: 1fr;
  }
  .columns h3{
    break-before: auto; break-inside: auto;
    margin-top: 1rem; text-align: left; padding: .25rem 0;
  }
  .columns p{ font-size: 16px; margin-bottom: 1rem; }

  /* Productos */
  .productos{ padding: 2rem 1rem; }
  .productos .title h2{ font-size: 2.2rem; }
  .productos .title p{ padding-bottom: 2rem; }
  .producto{ grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
  .producto .texto h3{ font-size: 1.5rem; max-width: 100%; }
  .producto .texto p{ max-width: 100%; }
  .producto .numero{ font-size: 1.25rem; }
  .producto img{
    display: inline-block;
    width: calc(50% - .5rem);
    height: auto;
    float: none;
    padding-top: 0;
    margin: 0 .5rem 1rem 0;
    vertical-align: top;
  }
  .producto img:nth-of-type(2n){ margin-right: 0; }
  .producto hr{ width: 100%; }

  /* Galería */
  /* (uses responsive rules above; no extra mobile overrides needed) */

  /* Compromiso */
  .compromiso{ padding: 1rem; }
  .compromiso h2{ font-size: 2rem; }
  .compromiso .container{ grid-template-columns: 1fr; }
  .compromiso .texto{ grid-template-columns: 1fr; }
  .p1, .p2{ width: 100%; height: auto; }
  .emoji{ margin: .5rem auto; }
  .compromiso .video{ margin-top: 1.5rem; }
  .compromiso .video iframe{ width: 100%; height: auto; aspect-ratio: 16/9; }

  /* Contacto — rounded card + stacked blocks */
  .contacto{
    margin: 1rem;
    padding: 0;
    background: lightgray;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }
  .contacto .left, .contacto .left img{ display: none !important; }
  .contacto > *{ background: transparent !important; }

  .top-bar{ display: flex; flex-direction: column; gap: 0; }
  .call, .email{
    width: 100%;
    padding: 1rem 1rem;
    margin: 0;
  }
  .call{ border-bottom: 2px solid rgba(255,255,255,.9); }
  .email{ border-bottom: 1px solid rgba(255,255,255,.9); }

  .call .llamanos,
  .email .correo{
    font-weight: 700;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    text-align: left;
  }
  .call p, .call a,
  .email p, .email a{
    font-weight: 400;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    text-align: left;
  }

  .preguntas{
    width: 100%;
    padding: 1rem 1.25rem;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.9);
  }
  .preguntas h2{
    text-align: left;
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
    font-weight: 800;
  }
  .preguntas p{
    margin: 0;
    font-weight: 400;
    font-size: clamp(.95rem, 4vw, 1.05rem);
    width: 90%;
    height: 20%;
  }

  /* Safety: prevent tiny horizontal scroll from full-bleed sections */
  html, body{ overflow-x: hidden; }

  /* Footer mobile */
  .footer-container{ padding-top: 2rem; padding-bottom: 2.5rem; }
  .footer{ flex-direction: column; align-items: center; gap: 1rem; }
  .footer-heading{ margin-right: 0; padding-bottom: 1rem; text-align: center; }
  .footer .mapa iframe{ width: 100%; height: 200px; }

  /* Calidad / Seguridad heading scale on phones */
  .calidad{ padding: 1.5rem 1rem; }
  .seguridad h3{
    font-size: clamp(1.25rem, 6.8vw, 1.85rem);
    line-height: 1.25;
    margin: 0 auto 1rem;
    max-width: 22ch;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* =========================
   Animations
   ========================= */
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: translateY(0); }
}
.productos .title{ opacity: 0; animation: fadeUp .8s ease-out forwards; animation-delay: .1s; }
.producto{ opacity: 0; animation: fadeUp .8s ease-out forwards; }
.producto:nth-of-type(1){ animation-delay: .2s; }
.producto:nth-of-type(2){ animation-delay: .35s; }
.producto:nth-of-type(3){ animation-delay: .5s; }
.producto:nth-of-type(4){ animation-delay: .65s; }
