:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-strong: #f3f7ff;
  --text: #1f2735;
  --muted: #58677f;
  --accent: #d81f2a;
  --accent-soft: #fde6e8;
  --nav: #14284a;
  --footer: #12203a;
  --border: #d8e0f0;
  --shadow: rgba(15, 35, 78, 0.08);
}

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

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== HEADER ===== */
.top-bar {
  background: var(--surface-strong);
  padding: 18px 2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img.logo-img {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo {
  min-height: 96px;
}

.contacts {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

.ci .main {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
}

.ci .sub {
  color: #888;
  font-size: 11px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--nav);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.navbar a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 13px 20px;
  display: inline-block;
  text-transform: uppercase;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar a.act {
  background: var(--accent);
  color: #fff;
}

.navbar .soc {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.navbar .soc a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 10px 8px;
  text-decoration: none;
}

.navbar .soc a:hover {
  color: #fff;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links wrapper */
.nav-links {
  display: flex;
  align-items: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  /* Height is driven by the image — overlay is contained inside */
}

/* The carousel wrapper fills the hero and sets the height */
.hero-carousel {
  position: relative;
  width: 100%;
  min-height: 460px;
}

.hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  background: #2a2a2a;
}

.hero-ph {
  width: 100%;
  height: 100%;
  background: rgba(12, 18, 25, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: none;
}

.hero-ph p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-ph .hero-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Overlay sits inside .hero which wraps the carousel, so it never bleeds out */
  background: linear-gradient(180deg, rgba(23, 35, 48, 0.65), rgba(23, 35, 48, 0.75));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.hero-overlay .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-overlay h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  max-width: 760px;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-red {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  outline: 2px solid rgb(175, 53, 53);
  text-decoration: none;
  transition: all 1.5s;
}

.btn-red:hover {
  box-shadow: 0 16px 28px rgba(216, 31, 42, 0.24);
  background: #ac373b8b;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: 2px solid rgb(255, 255, 255);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 1.5s;
}

.btn-ghost:hover {
  box-shadow: 0 16px 28px rgba(226, 226, 226, 0.178);
  background-color: #ffffff45;
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 3rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cc1a2e;
  margin-bottom: 6px;
}

h2 {
  font-size: 26px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.sep {
  border: none;
  border-top: 1px solid #d5d5d5;
  max-width: 960px;
  margin: 0 auto;
}

/* ===== SOBRE NOSOTROS ===== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.sobre-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.sobre-img {
  width: 100%;
  height: 340px;
  background: #d0d0d0;
  border-radius: 6px;
  border: 2px dashed #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.sobre-img img,
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.6s ease;
  opacity: 1;
}

.carousel-image.fade-out {
  opacity: 0;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 40, 74, 0.72);
  color: #fff;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(216, 31, 42, 0.88);
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}

.stat {
  background: #e4e4e4;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.stat .num {
  font-size: 28px;
  font-weight: 900;
  color: #cc1a2e;
}

.stat .lbl {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* ===== SERVICIOS ===== */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 1.5rem;
}

.serv-card {
  background: #fff;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.serv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.12);
}

.serv-card a,
.serv-card {
  color: inherit;
  text-decoration: none;
}

.serv-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #d0d0d0 0%, #e8e8e8 100%);
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.serv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serv-img p {
  font-size: 12px;
  color: #888;
}

.serv-body {
  padding: 14px;
}

.serv-body h3 {
  font-size: 15px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.serv-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ===== GALERÍA ===== */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1.5rem;
}

.gal-item {
  border-radius: 6px;
  aspect-ratio: 4/3;
  background: #d0d0d0;
  border: 2px dashed #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-item p {
  font-size: 12px;
  color: #888;
}

.gal-item.grande {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.contact-panel,
.contact-info {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
  padding: 1.8rem;
}

.contact-info {
  border: 1px solid rgba(204, 26, 46, 0.12);
}

.contact-form-header {
  margin-bottom: 1.5rem;
}

.contact-form-header p,
.section-description {
  font-size: 14px;
  color: #5a5a5a;
  max-width: 680px;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: #cc1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.contact-item div {
  display: grid;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin: 0;
}

.contact-value {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.contact-item .txt {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 700;
}

.contact-item .txt span {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
}

.form-group .field-note {
  font-size: 11px;
  color: #999;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
  font-family: Arial, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
  appearance: none;
}

.form-group textarea {
  height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #cc1a2e;
  box-shadow: 0 0 0 4px rgba(204, 26, 46, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-columns fieldset {
  min-width: 0;
}

.radio-group,
.checkbox-group {
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}

.radio-group legend,
.checkbox-group legend {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 12px;
}

.radio-group label,
.checkbox-group label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ece8e5;
  margin-bottom: 0;
}

.radio-group label:hover,
.checkbox-group label:hover {
  background: #fbf7f4;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #cc1a2e;
  margin: 0;
}

.form-message {
  min-height: 24px;
  font-size: 13px;
  margin-bottom: 14px;
}

.full-width {
  width: 100%;
}

.section.contact-section {
  background: #fbf7f4;
}

/* ===== FOOTER ===== */
.footer-top {
  background: var(--footer);
  padding: 3rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand h2 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.footer-brand h2 span {
  color: #d81f2a;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.social-icons a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  background: #3a3a3a;
  border-top: 3px solid #cc1a2e;
  padding: 1rem 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ===== LIGHTBOX PROPIO ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
}

.lightbox-close:hover {
  color: #d81f2a;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #d81f2a;
  border-color: #d81f2a;
}

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.gal-item img {
  cursor: pointer;
}

/* ===== CATÁLOGO ===== */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 1.5rem;
}

.catalogo-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #d0d0d0;
}

.catalogo-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.catalogo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.catalogo-item img:hover {
  transform: scale(1.04);
}

.catalogo-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.catalogo-cta p {
  font-size: 16px;
  color: #444;
  margin: 0;
}

.catalogo-cta .btn-red {
  display: inline-block;
  text-decoration: none;
  width: auto;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #14284a;
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 8px 16px;
  border: 2px solid #14284a;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-back:hover {
  background: #14284a;
  color: #fff;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.15);
}

.form-group input:invalid {
  border-bottom: 2px solid rgba(204, 26, 46, 0.3);
}

input,
select,
textarea,
.form-group {
  scroll-margin-top: 240px;
}

.checkbox-group {
  transition: all 0.3s ease;
}

.checkbox-group.invalid-group {
  border: 1px solid #cc1a2e !important;
  background-color: #fff8f8;
}

/* ===================================================
   RESPONSIVE — TABLET  (≤ 900px)
   =================================================== */
@media (max-width: 900px) {
  .serv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   =================================================== */
@media (max-width: 768px) {

  /* Top bar */
  .top-bar {
    padding: 12px 1.2rem;
  }

  .logo img.logo-img {
    height: 64px;
  }

  .logo {
    min-height: 64px;
  }

  .contacts {
    display: none;
  }

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Nav becomes vertical dropdown */
  .navbar {
    flex-wrap: wrap;
    padding: 0 1.2rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .navbar a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 13px;
    display: block;
  }

  .navbar a:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero-carousel {
    min-height: 320px;
  }

  .hero-img {
    height: 320px;
  }

  .hero-overlay {
    padding: 2rem 1.2rem;
  }

  .hero-overlay h1 {
    font-size: clamp(22px, 6vw, 34px);
  }

  .hero-overlay p {
    font-size: 14px;
    margin-bottom: 1.5rem;
  }

  .btn-red,
  .btn-ghost {
    padding: 13px 24px;
    font-size: 13px;
  }

  /* Section padding */
  .section {
    padding: 2rem 1.2rem;
  }

  /* Sobre nosotros */
  .sobre-grid {
    grid-template-columns: 1fr;
  }

  .sobre-img {
    height: 260px;
  }

  /* Stats */
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  /* Servicios */
  .serv-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Galería */
  .gal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gal-item.grande {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  /* Catálogo */
  .catalogo-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-top {
    padding: 2rem 1.2rem 1.5rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   =================================================== */
@media (max-width: 480px) {

  /* Hero */
  .hero-carousel {
    min-height: 360px;
  }

  .hero-img {
    height: 360px;
  }

  .hero-overlay {
    padding: 1.2rem 1rem;
    justify-content: center;
  }

  .hero-overlay .badge {
    margin-bottom: 0.5rem;
  }

  .hero-overlay p {
    margin-bottom: 1rem;
    font-size: 13px;
  }

  .hero-overlay h1 {
    font-size: clamp(20px, 7vw, 28px);
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn-red,
  .btn-ghost {
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Servicios: 1 columna */
  .serv-grid {
    grid-template-columns: 1fr;
  }

  /* Stats: 1 columna */
  .stats {
    grid-template-columns: 1fr;
  }

  /* Galería: 1 columna */
  .gal-grid {
    grid-template-columns: 1fr;
  }

  .gal-item.grande {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  /* Catálogo: 1 columna */
  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: 1 columna */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  /* Sobre nosotros imagen */
  .sobre-img {
    height: 220px;
  }

  /* Botón volver */
  .btn-back {
    font-size: 12px;
    padding: 7px 14px;
  }

  /* Formulario */
  .radio-group label,
  .checkbox-group label {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Lightbox arrows en móvil pequeño */
  .lightbox-prev {
    left: 8px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .lightbox-next {
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
/* ===================================================
   AJUSTE PARA PANTALLAS GRANDES (Laptops y Desktop)
   =================================================== */
@media (min-width: 1024px) {
  .hero {
    background: #172330; /* Evita destellos blancos si la imagen tarda en cargar */
  }

  .hero-carousel {
    width: 100%; 
    margin: 0 auto;    
    min-height: 520px; 
    overflow: hidden;
  }

  .hero-img {
    height: 520px; 
  }

  .hero-overlay {
    width: 100%;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
  }
}