/* Fuerza los cuadros de 'por qué elegirnos?' a estar en una sola fila horizontal */
.elegirnos-cuadros {
  display: flex !important;
  flex-direction: row !important;
  gap: 1.5rem !important;
  justify-content: center !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
}
.elegirnos-cuadro {
  flex: 0 0 220px !important;
  max-width: 220px !important;
  min-width: 180px !important;
  margin: 0 !important;
}
/* Paleta de colores */
:root {
  --color1: #ffffff;
  --color2: #8b4336;
  --color3: #b34c2f;
  --color4: #1c1c1c;
  --color5: #686a6c;
  --color6: #e1e7f3;
}

/* Fondo y texto general */
body {
  background: var(--color6);
  color: var(--color4);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header y navegación */
header {
  background: var(--color1);
  color: #fff;
  padding-bottom: 0.5rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa logo y menú */
  padding: 0 5rem;
}

.logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 3rem;
  padding: 1rem 0rem 0.5rem 0rem;
  gap: 0.2rem;
}

.logo-img {
  height: 180px;
  width: auto;
  margin-right: 10px;
  border-radius: 0;
  border: none;
  background: var(--color1);
}

nav ul {
  flex: 2 1 0;
  display: flex;
  justify-content: flex-end; /* alinea menú a la derecha */
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--color4);
  font-size: 1.2rem; 
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav ul li a.active,
nav ul li a:hover {
  background: var(--color3);
  color: var(--color4);
}

/* Hero principal */
.hero-main {
  background: linear-gradient(120deg, var(--color1) 60%, var(--color2) 100%);
  color: var(--color4);
  padding: 3rem 0 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero.hero-main {
  position: relative;
  width: 100%;
  height: 800px; /* Ajusta la altura según tu diseño */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 1;
}

.slider-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
  left: 0; top: 0;
}

.slider-img.active {
  opacity: 1;
  z-index: 2;
}

.naranja {
  color: var(--color3);
}
.negro {
  color: var(--color4);
}

.slider-caption {
  position: absolute;
  z-index: 3;
  color: var(--color3);
  text-align: center;
  width: 100%;
  background: rgba(44,44,44,0.25);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -40%);
  box-shadow: 0 2px 16px rgba(44,44,44,0.10);
}

.slider-caption h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.slider-caption h2,
.slider-caption h2,
.slider-caption .slider-sub {
  font-size: 2.2rem;
  margin-top: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
/* Ajuste para los cuadros de 'por qué elegirnos?' en una sola fila */
.elegirnos-cuadros {
  display: flex !important;
  gap: 1.5rem !important;
  justify-content: center !important;
  margin-top: 2rem !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}
@media (max-width: 1200px) {
  .elegirnos-cuadros {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .elegirnos-cuadro {
    flex: 1 1 210px !important;
    max-width: 300px !important;
    min-width: 180px !important;
  }
}
/* Fondo de 'NUESTRO PROPOSITO' igual al resto */
.proposito-section {
  background: var(--color6) !important;
  padding: 2.5rem 0 1.5rem 0 !important;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto 2rem auto;
    border-radius: 0;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color6);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background: var(--color2);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--color3);
}

.hero-gallery {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--color3);
  box-shadow: 0 2px 8px rgba(44,44,44,0.12);
  background: var(--color1);
}

/* Secciones principales */
.gallery-section, .about-section, .blog-section {
  background: var(--color1);
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  max-width: 900px;
  box-shadow: 0 2px 16px rgba(44,44,44,0.10);
  text-align: center;
}

h2 {
  color: var(--color2);
  margin-top: 0;
}

.project-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.project-gallery img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--color5);
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.project-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--color3);
}

.gallery-link {
  margin-top: 1.5rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  color: var(--color4);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.blog-list article {
  background: var(--color6);
  border-left: 5px solid var(--color2);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 600px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(44,44,44,0.06);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(30,30,30,0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(44,44,44,0.25);
}

.close {
  color: #fff;
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
}

#modalCaption {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--color4);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  margin-top: 2rem;
}

.social-links {
  margin-bottom: 0.5rem;
}

.social-links a img {
  width: 28px;
  height: 28px;
  margin: 0 8px;
  filter: invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-links a img:hover {
  opacity: 1;
}

/* Botón scroll arriba */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: var(--color2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
#scrollTopBtn:hover {
  background: var(--color3);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-gallery, .project-gallery {
    flex-direction: column;
    align-items: center;
  }
  .gallery-section, .about-section, .blog-section {
    padding: 1.2rem 0.5rem;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
/* Formulario de cotización moderno */
.cotizacion-form {
  max-width: 480px;
  margin: 2rem auto 0 auto;
  background: var(--color6);
  padding: 2.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(44,44,44,0.10);
}

.cotizacion-form h3 {
  color: var(--color3);
  margin-bottom: 0.2rem;
  margin-top: 1rem;
  text-align: left;
}
.cotizacion-form hr {
  border: none;
  border-top: 2px solid var(--color2);
  margin: 0.5rem 0 1.2rem 0;
}

.form-row {
  display: flex;
  gap: 1rem;
}
.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color2);
  font-weight: 600;
}

.input-icon {
  display: flex;
  align-items: center;
  background: var(--color1);
  border-radius: 8px;
  border: 1.5px solid var(--color5);
  padding: 0.3rem 0.8rem;
  box-shadow: 0 1px 4px rgba(44,44,44,0.04);
}

.input-icon span {
  font-size: 1.2rem;
  margin-right: 0.7rem;
  color: var(--color3);
}

.input-icon input,
.input-icon textarea {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  padding: 0.7rem 0;
  color: var(--color4);
  resize: none;
}

.input-icon textarea {
  min-height: 80px;
}

.cotizacion-form .cta-btn {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 0.9rem 0;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ---- Mejoras ---- */
html { scroll-behavior: smooth; }
img { max-width: 100%; }
@media (max-width: 900px) {
  nav { flex-direction: column; padding: 0 1rem; }
  .logo-img { height: 90px; }
  nav ul { justify-content: center; flex-wrap: wrap; gap: 0.3rem; }
  nav ul li a { font-size: 0.95rem; padding: 0.4rem 0.7rem; }
  .hero.hero-main { height: 460px; }
  .slider-caption { padding: 1rem; top: 50%; transform: translate(-50%, -50%); width: 90%; }
  .slider-caption h1 { font-size: 2rem; }
  .slider-caption .slider-sub { font-size: 1.2rem; }
  .contacto-bg { flex-direction: column !important; }
  .alterno-row { flex-direction: column !important; gap: 1rem; text-align: center; }
  .alterno-texto, .alterno-img { padding: 0 1rem !important; justify-content: center !important; }
  .elegirnos-cuadros { flex-wrap: wrap !important; }
}

/* ---- Pie de página compartido ---- */
#site-footer { background: var(--color3); color: #fff; text-align: center; padding: 1.5rem 0 1rem 0; margin-top: 2rem; }
#site-footer p { margin: 0; }

/* ---- Botón flotante de WhatsApp ---- */
.wa-float { position: fixed; right: 24px; bottom: 90px; z-index: 1000; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,0.3); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float img { width: 30px; height: 30px; filter: invert(1); }

/* ---- Arreglo de desplazamiento en móvil ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
.logo { font-size: 1rem; }
@media (max-width: 900px) {
  .logo { justify-content: center; flex: none; }
  .elegirnos-cuadro { flex: 1 1 100% !important; max-width: 100% !important; }
  .hero-gallery { flex-wrap: wrap; }
  .hero-gallery img { width: 45%; }
  .servicio-card { flex-direction: column; text-align: center; gap: 1rem; }
  .servicio-img { justify-content: center; }
  .contacto-bg, .contacto-info, .contacto-form { min-width: 0; width: 100%; }
  .contacto-info, .contacto-form { padding: 1.5rem 1rem !important; }
  .elegirnos-detalle { padding: 1.5rem 1rem !important; margin: 1rem !important; }
  .elegirnos-detalle h1 { font-size: 1.8rem !important; }
  .proceso-paso { min-width: 0; width: 100%; }
  .cuadro-escencia, .cliente-foto { min-width: 0; width: 100%; }
}

/* ---- Estilo del catálogo aplicado a todo el sitio ---- */
.servicio-card, .accesorio-card, .impresion3d-card, .mueble-card, .cuadro-escencia, .proceso-paso,
.cliente-foto, .blog-article, .portfolio-item, .elegirnos-cuadro, .card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.servicio-card:hover, .accesorio-card:hover, .impresion3d-card:hover, .mueble-card:hover, .cuadro-escencia:hover,
.proceso-paso:hover, .cliente-foto:hover, .blog-article:hover, .portfolio-item:hover, .elegirnos-cuadro:hover, .card-hover:hover {
  transform: translateY(-4px); box-shadow: 0 6px 20px rgba(44,44,44,0.18) !important; }

.cta-banner { max-width: 900px; margin: 2.5rem auto 0; background: var(--color4); color: #fff; border-radius: 14px; padding: 2rem 1.5rem; text-align: center; }
.cta-banner h2 { color: #fff; margin: 0 0 0.5rem; }
.cta-banner p { margin: 0 0 1rem; }
.cta-banner a { display: inline-block; border-radius: 8px; padding: 0.8rem 1.5rem; margin: 0.3rem; font-weight: 700; text-decoration: none; color: #fff; }
.cta-banner .btn-wa { background: #25d366; }
.cta-banner .btn-wa:hover { background: #1ebe5a; }
.cta-banner .btn-sec { border: 2px solid #fff; }
.cta-banner .btn-sec:hover { background: var(--color3); border-color: var(--color3); }
@media (max-width: 900px) { .cta-banner { margin: 2rem 1rem 0; } }
