/* ========= RESET SIMPLE ========= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #463d31; /* texto cálido */
  background-color: #f6efe4; /* arena clara */
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}
/* =========================
   FIX DEFINITIVO IMÁGENES – 6 CARDS PROYECTOS
========================= */
#galeria .card img,
#galeria .card-img{
  width: 100% !important;
  height: 180px !important;     /* CLAVE: sin altura no hay object-fit */
  object-fit: contain !important;
  object-position: center !important;
  background-color: #f2efe9;
  border-radius: 14px;
  display: block;
}
/* =========================
   FIX REAL: NO ZOOM EN FOTOS DE PROYECTOS
========================= */

/* contenedor real de la imagen */
#galeria .card{
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}



/* ========= LAYOUT GENERAL ========= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  min-height: 70vh;
}

/* ========= HEADER ========= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fffaf2e8; /* blanco cálido semitransparente */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e4dccb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

/* LOGO (texto + arco) */
.logo {
  display: flex;
  align-items: center;
  gap: 3px;          /* espacio corto entre arco y texto */
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

/* círculo viejo, por si se usa en otro lado */
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #2f5233; /* Verde Militar Overarg aprox */
  background:
    radial-gradient(circle at 30% 20%, #7fb38a, #2f5233);
}

/* --- CONTROL DEL ARCO DEL LOGO --- */
.logo-img{
  height: 54px;
  width: auto;
  display: block;
}

/* --------------------------------- */

/* ====== MENÚ EN PÍLDORAS ====== */
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 14px;
  font-size: 0.95rem;
}

/* Cada item del menú como pastilla */
nav ul li a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 500;
  transition: 0.25s ease;
}

/* Hover */
nav ul li a:hover {
  background: #f3f3ef;
  border-color: #ddd;
}

/* Activo (class="active" en el <a>) */
nav ul li a.active {
  background: #d8e7e4;
  border-color: #a5c5bf;
  font-weight: 700;
}

/* ========= BOTONES ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.12s ease,
              box-shadow 0.12s ease,
              background-color 0.12s ease,
              border-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-primary {
  background-color: #2f5233; /* verde militar */
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #2f5233;
  border: 1px solid #2f5233;
}

.btn-outline:hover {
  background-color: #e4f1e3;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

/* ========= SECCIONES GENERALES ========= */

section {
  padding: 56px 0;
  background-color: #f6efe4; /* arena */
}

section:nth-of-type(even) {
  background-color: #fffaf2; /* blanco cálido */
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.98rem;
  color: #7a6f5c; /* gris tostado */
  max-width: 640px;
  margin: 0 auto;
}

/* ========= HERO (cielo + mar + arena, más suave) ========= */

.hero {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(191, 228, 255, 0.45) 0%,   /* cielo más suave */
      rgba(122, 195, 255, 0.40) 22%,
      rgba(78, 139, 164, 0.35) 40%,   /* mar bajado */
      rgba(106, 159, 123, 0.32) 55%,  /* pasto suave */
      rgba(243, 223, 196, 0.32) 75%,  /* arena húmeda clara */
      rgba(246, 239, 228, 0.42) 100%  /* arena seca */
    );
  color: #253127;
  padding: 78px 0 60px;
  overflow: hidden;
}

/* Velo blanco suave encima del fondo para subir legibilidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:rgba(255, 255, 255, 0.28); /* antes estaba más alto */
  backdrop-filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}

/* Gaviota en la esquina superior derecha */
.hero::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 28px;
  width: 80px;
  height: 80px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' fill-opacity='0.45' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'><path d='M2 32c10-3 18-2 26 2 8 4 15 5 26 1-6 7-16 11-26 9C18 42 8 38 2 32z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1; /* por encima de overlays */
}

/* Panel del texto del hero */
.hero-inner > div:first-child {
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.18), rgba(20,26,20,0.78));
  color: #fdfdfd;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.1vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 20px;
  opacity: 0.96;
  color: #f6f4f0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.85rem;
  opacity: 0.9;
  color: #e9e4da;
}

/* placeholder viejo, ya no se usa pero no molesta */
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 10%, #fffbeccc 0%, #fffbe700 45%),
    linear-gradient(145deg, #355b3c 0%, #5c8f66 38%, #f3dfc4 78%, #f6efe4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
  color: #fffdf6;
  border: 1px solid #d8cfbd;
  box-shadow: 0 16px 35px rgba(0,0,0,0.28);
}

/* ========= CARDS Y GRILLAS ========= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background-color: #fffaf2;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e5dcc7;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9a8c76;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.card-text {
  font-size: 0.9rem;
  color: #5a5244;
  flex-grow: 1;
}

.card-footer {
  margin-top: 8px;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f5233;
}

/* ========= BENEFICIOS ========= */

#beneficios {
  background:
    linear-gradient(
      180deg,
      #e7f2ea 0%,
      #f6efe4 100%
    );
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  background-color: #fffaf2;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid #e5dcc7;
}

.benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #2f5233;
  background-color: #e3f1e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ========= PRODUCTOS ========= */

#productos {
  background:
    linear-gradient(
      180deg,
      #f6efe4 0%,
      #e8d7bd 38%,
      #d9bfa0 60%,
      #f6efe4 100%
    );
}

/* ========= OUTLET / CONTACTO ========= */

.outlet-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

.outlet-note {
  font-size: 0.9rem;
  color: #7a6f5c;
  margin-top: 8px;
}

.outlet-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background-color: #ffe8c7;
  color: #b26a00;
  margin-bottom: 6px;
}

/* ========= GALERÍA / CLIENTES ========= */

#galeria {
  background:
    linear-gradient(
      180deg,
      #e6f1fb 0%,
      #e4f1ea 50%,
      #f6efe4 100%
    );
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  width: 100%;
  padding-bottom: 70%;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* ⭐ Sombra estilo Overarg */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;

}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}


/* ========= TESTIMONIOS ========= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonial {
  background-color: #fffaf2;
  border-radius: 18px;
  padding: 18px;
  font-size: 0.9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5dcc7;
}

.testimonial-author {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #4a4338;
}

/* ========= CTA FINAL ========= */

.cta-final {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final p {
  font-size: 0.95rem;
  color: #5a5244;
  margin-bottom: 16px;
}

/* ========= FOOTER ========= */

footer {
  background-color: #171613;
  color: #ddd2c4;
  padding: 28px 0 16px;
  font-size: 0.85rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #2c2a25;
  padding-top: 10px;
  color: #8e8576;
}

/* ========= RESPONSIVE GENERAL ========= */

@media (max-width: 900px) {
  .hero-inner,
  .outlet-inner,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .benefits-grid,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cards-grid,
  .benefits-grid,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 60px;
  }
}

/* ==== NAV RESPONSIVE SIMPLE ==== */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
    font-size: 0.9rem;
  }
}

/* =========================================================
   HERO – Imagen final (PC + Mobile)
   ========================================================= */

/* PC / escritorio */
.hero-image {
  width: 580px;
  height: 400px;
  margin-left: auto;
  margin-right: 40px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 24px 0 0 0;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  }

  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Tarjetas productos: título + mini foto + botón */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.card-thumb {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-card {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.gallery-item:nth-child(1) {
  background-image: url("galeria-1-toldo-vela.jpg");
}

.gallery-item:nth-child(2) {
  background-image: url("galeria-2-red-camuflaje.jpg");
}

.gallery-item:nth-child(3) {
  background-image: url("galeria-3-cortina-camuflaje.jpg");
}

.gallery-item:nth-child(4) {
  background-image: url("galeria-4-ambiente-overarg.jpg");
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* =========================================================
   BLOQUE INTERMEDIO HOME (imagen - texto - imagen)
   ========================================================= */

section.interblock{
  padding: 64px 0;
  background-color: #f7efe4;
}

section.interblock .container .interblock-inner{
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 32px;
  align-items: center;              /* centra en la fila */
}

/* Garantiza orden: imagen / texto / imagen */
section.interblock .interblock-inner > .interblock-image:first-of-type{ grid-column: 1; }
section.interblock .interblock-inner > .interblock-text{ grid-column: 2; }
section.interblock .interblock-inner > .interblock-image:last-of-type{ grid-column: 3; }

/* Tarjetas de imagen: 100% imagen, sin franjas */
section.interblock .interblock-image{
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 18px;
}

/* Zoom suave (sin franjas) */
section.interblock .interblock-image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;               /* llena sin franjas */
  object-position: center 55%; /* clave para no cortar el toldo */
}

/* Texto centrado VERTICAL y HORIZONTAL entre las imágenes */
section.interblock .interblock-text{
  align-self: center;              /* ✅ ESTA es la clave del centrado vertical */
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

section.interblock .interblock-text .section-title{
  margin: 0 0 12px;
}

section.interblock .interblock-text .section-subtitle{
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 980px){
  section.interblock .container .interblock-inner{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section.interblock .interblock-image{
    height: 220px;
  }

  section.interblock .interblock-inner > .interblock-image:first-of-type,
  section.interblock .interblock-inner > .interblock-text,
  section.interblock .interblock-inner > .interblock-image:last-of-type{
    grid-column: auto;
  }
}
/* =========================
   HERO – Ajuste fino (HOME)
   ========================= */

/* Panel texto: más premium, menos pesado */
.hero-inner > div:first-child{
  background: linear-gradient(180deg, rgba(30,36,30,0.72), rgba(20,26,20,0.62));
  border: 1px solid rgba(255,255,255,0.14);
}

/* Título un poco más “apretado” y limpio */
.hero-title{
  line-height: 1.05;
  letter-spacing: 0.01em;
}

/* Subtítulo: más legible */
.hero-subtitle{
  line-height: 1.45;
  opacity: 0.98;
}

/* Imagen HERO: menos zoom, más contexto */
.hero-image img{
  object-fit: cover;
  object-position: center 55%;
}

/* Mobile: evitamos “contain” para que no aparezcan franjas */
@media (max-width: 768px){
  .hero-image img{
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
  }
}
.hero-inner > div:first-child{
  padding: 18px 22px;
}
/* =========================================================
   ALINEAR INTERBLOCK CON HERO (columna óptica)
   ========================================================= */

section.interblock .container{
  padding-left: 16px;
  padding-right: calc(16px + 40px); /* iguala el corrimiento del HERO */
}
/* =========================
   INSTALACIONES REALES
========================= */

.real-installations{
  padding: 72px 0;
  background-color: #fffaf2;
}

.real-intro{
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 0.95rem;
  color: #6a6254;
}

.real-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Card */
.real-item{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Imagen */
.real-item img{
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.real-item:hover img{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

/* Caption */
.real-caption{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: #4f473b;
}

.real-client{
  font-weight: 650;
  letter-spacing: 0.1px;
}

/* Botón real (no link) */
.real-btn{
  appearance: none;
  border: 1px solid rgba(47,82,51,0.35);
  background: rgba(47,82,51,0.06);
  color: #2f5233;
  font-weight: 650;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.real-btn:hover{
  opacity: 0.9;
  transform: translateY(-1px);
  background: rgba(47,82,51,0.10);
}

.real-btn:active{
  transform: translateY(0);
}

.real-close{
  margin-top: 36px;
  text-align: center;
  font-weight: 650;
  color: #463d31;
}

/* =========================
   MODAL (captura WhatsApp)
   (Listo para cuando pegues el HTML)
========================= */

.real-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.real-modal.is-open{
  display: flex;
}

.real-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.real-modal__panel{
  position: relative;
  width: min(920px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 18px;
  background: #fffaf2;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

/* Header del modal */
.real-modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.real-modal__title{
  font-weight: 700;
  color: #463d31;
  font-size: 0.95rem;
}

.real-modal__close{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #463d31;
}

/* Contenido: imagen + CTA */
.real-modal__body{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 16px;
}

.real-modal__imgwrap{
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.real-modal__imgwrap img{
  width: 100%;
  height: 100%;
  max-height: 62vh;
  object-fit: contain; /* clave para que la captura de WhatsApp no se deforme */
  display: block;
  background: #fff;
}

.real-modal__side{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.real-modal__note{
  font-size: 0.92rem;
  color: #6a6254;
  line-height: 1.45;
}

.real-modal__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  border: 1px solid rgba(47,82,51,0.35);
  background: rgba(47,82,51,0.10);
  color: #2f5233;
  text-decoration: none;
  cursor: pointer;
}

.real-modal__cta:hover{
  opacity: 0.92;
}

/* Responsive */
@media (max-width: 900px){
  .real-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-modal__body{
    grid-template-columns: 1fr;
  }

  .real-modal__imgwrap img{
    max-height: 55vh;
  }
}

@media (max-width: 600px){
  .real-grid{
    grid-template-columns: 1fr;
  }

  .real-caption{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* =========================
   MODALES - COMENTARIOS CLIENTES
   (forzar que la imagen se vea)
========================= */

.real-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
}

.real-modal.is-open{
  display: flex;
}

.real-modal-content{
  position: relative;
  width: min(920px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: #fffaf2;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);

  /* CLAVE: que NO quede como barra horizontal */
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.real-modal-content img{
  display: block;          /* CLAVE */
  width: 100%;             /* CLAVE */
  height: auto;            /* CLAVE */
  max-height: 68vh;        /* para que entre en pantalla */
  object-fit: contain;     /* que no recorte el chat */
  border-radius: 12px;
  background: #ffffff;
}

.real-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.real-whatsapp{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: #25D366;
  color: #fff;
  text-decoration: none;
}

.real-whatsapp:hover{
  opacity: 0.9;
}
@media (min-width: 1024px){
  .clientes-marcas-grid{
    grid-template-columns: repeat(6, 1fr);
  }
}
/* =========================
   BOTONES CTA GALERÍA – SOMBRA SUAVE
========================= */
#galeria .btn{
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: box-shadow .2s ease, transform .2s ease;
}

@media (hover:hover){
  #galeria .btn:hover{
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    transform: translateY(-1px);
  }
}

/* =========================
   BOTONES CTA – NUESTROS PRODUCTOS
========================= */
#productos .btn{
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: box-shadow .2s ease, transform .2s ease;
}

@media (hover:hover){
  #productos .btn:hover{
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    transform: translateY(-1px);
  }
}

/* =========================
   PERMITIR SOMBRA EN CARDS DE PRODUCTOS
========================= */
#productos .card{
  overflow: visible;

}

@media (hover:hover){
  #productos .btn:hover{
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    transform: translateY(-1px);
  }
}

}

@media (hover:hover){
  #galeria .btn:hover{
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    transform: translateY(-1px);
  }
}
/* =========================
   PROYECTOS (cards con foto) – SOLO en #galeria
   ========================= */

#galeria .cards-grid .card{
  overflow: hidden;              /* clave: recorta la imagen al borde redondeado */
  padding: 20px;                /* mantiene tu padding */
}

/* Si tu <img> está como primer elemento dentro del .card */
#galeria .cards-grid .card > img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 14px;
  margin-bottom: 12px;
}

}

/* Afinamos jerarquía */
#galeria .card-tag{ margin-top: 2px; }
#galeria .card-title{ line-height: 1.15; }
#galeria .card-text{ line-height: 1.45; }
#galeria .cards-grid .card > img{
  width: 100%;
  height: 190px;
  object-fit: cover;      /* recorta un poco */
  object-position: center;
  border-radius: 14px;
  display: block;
  margin-bottom: 12px;
}

}
.cards-grid .card img{
  width: 100%;
  height: 200px;        /* altura pareja */
  object-fit: cover;   /* NO deformar */
  object-position: center 55%;
  border-radius: 14px;
}
#galeria .cards-grid .card img{
  width: 100%;
  height: 240px;              /* más aire vertical */
  object-fit: cover;          /* estética premium */
  object-position: center 45%;/* baja el encuadre */
  display: block;
  border-radius: 14px;
}

}
/* =========================
   FIX 6 PROYECTOS – GRID CONTROLADO
========================= */
.oa-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Tablet: 2 por fila */
@media (max-width: 1024px){
  .oa-cards-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 por fila */
@media (max-width: 560px){
  .oa-cards-grid{
    grid-template-columns: 1fr;
  }
}
/* ===== OVERRIDE FINAL: FORZAR 3x2 EN DESKTOP ===== */
.oa-projects .oa-cards-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

/* Tablet */
@media (max-width: 1024px){
  .oa-projects .oa-cards-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 560px){
  .oa-projects .oa-cards-grid{
    grid-template-columns: 1fr !important;
  }
}
.oa-img{
  width: 100%;
  height: 190px;           /* un poquito más alta para que no quede enana */
  object-fit: contain;     /* NO recorta, NO zoomea */
  background: #f2efe9;     /* relleno prolijo cuando sobra espacio */
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
}
/* === FIX IMÁGENES · 6 PROYECTOS === */
.oa-projects .card-img{
  width: 100%;
  height: 190px;
  object-fit: contain;      /* evita zoom / recorte */
  background: #f2efe9;
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
}
/* TEST: si esto pega, vas a ver un borde rojo */
#galeria .card-img{
  outline: 5px solid red !important;
}
/* =========================
   FIX REAL: NO ZOOM EN FOTOS DE PROYECTOS
========================= */

/* contenedor real de la imagen */
#galeria .card{
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}
#galeria .card img{
  position: relative !important;
  z-index: 2;
}
#galeria .card{
  background: red !important;
}
/* =========================
   GALERÍA · 6 PROYECTOS REALES (DEFINITIVO)
========================= */

#galeria .oa-projects{
  margin: 22px auto 6px;
  max-width: 1100px;
}

#galeria .oa-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Card */
#galeria .oa-card{
  background: #fff7ef;
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* Imagen — SIN ZOOM */
#galeria .oa-img{
  width: 100%;
  height: 190px;
  object-fit: cover;          /* vuelve a llenar */
  object-position: center 55%;/* baja apenas el encuadre */
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
}


/* Tablet */
@media (max-width: 1024px){
  #galeria .oa-cards-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 560px){
  #galeria .oa-cards-grid{
    grid-template-columns: 1fr;
  }

  #galeria .oa-img{
    height: 180px;
  }
}
/* =========================
   CTA · 6 PROYECTOS (CENTRADO)
========================= */

#galeria .oa-cta{
  display: flex;
  justify-content: center;   /* 🔥 CENTRA EL GRUPO */
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
#galeria .oa-cta{
  margin-top: 22px;
}
@media (max-width: 560px){
  #galeria .oa-cta{
    gap: 10px;
  }
}
/* =========================
   CTA FINAL · WHATSAPP (DESTACADO)
========================= */

#galeria .oa-bottom .btn{
  background-color: #25D366;   /* WhatsApp real */
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

#galeria .oa-bottom .btn:hover{
  background-color: #1fb857;
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  transform: translateY(-1px);
}
#galeria .oa-bottom .btn::before{
  content: "📸 ";
}
/* =========================
   CENTRAR CTA WHATSAPP FINAL
========================= */

#galeria .oa-bottom{
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔥 centra el botón */
  text-align: center;
}

#galeria .oa-bottom .btn{
  margin-top: 16px;
}