html {
  scroll-behavior: smooth;
}

/* Modal imagen (unificado) */
.modal-img {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  background-color: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-img.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  transform: translateY(6px) scale(0.98);
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  opacity: 0;
  display: block;
}

.modal-img.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  background: transparent;
  border: none;
  font-size: 36px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 2100;
  text-shadow: 0 2px 8px #000;
  transition: color 0.16s ease, transform 0.12s ease;
}
.close-modal:hover {
  color: #ffb300;
  transform: scale(1.05);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  text-shadow: 0 2px 8px #000;
  transition: color 0.2s;
}
.close-modal:hover {
  color: #ffb300;
}

.close-modal:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(255, 179, 0, 0.18); /* anillo suave amarillo */
  border-radius: 6px;
}

/* GENERAL */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #faf7f3;
  color: #333;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1, h2, h3 {
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(24px, 5vw, 36px);
}

.section {
  padding: clamp(30px, 8vw, 60px) clamp(16px, 5vw, 20px);
  max-width: 1100px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(15px, 3vw, 20px);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 100;
}

.header .logo {
  font-weight: bold;
  font-size: clamp(16px, 4vw, 20px);
  align-items: center;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.header .logo img {
  width: clamp(30px, 6vw, 40px);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: clamp(12px, 1.2vw, 16px);
  white-space: nowrap;
}

.nav a:hover {
  color: #8d6e63;
}

/* MENÚ HAMBURGUESA - Inicialmente oculto en escritorio */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* HERO */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.55) contrast(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* combinación de gradientes para oscurecer el fondo y centrar la atención */
  background-image: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%),
                    linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 10px 20px;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 56px);
  color: #fff;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: clamp(14px, 1.6vw, 20px);
  color: rgba(255,255,255,0.92);
  margin-bottom: 20px;
}

.btn-hero {
  background: #8d6e63;
  color: white;
  padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 20px);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(12px, 1.2vw, 16px);
  display: inline-block;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #765a4a;
  transform: translateY(-2px);
}

/* CATÁLOGO */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding-bottom: 15px;
}

.card img {
  width: 100%;
  display: block;
}

.card h3 {
  padding: 10px 15px 0;
}

.card p {
  padding: 0 15px 15px;
  color: #555;
}

/* Estilos específicos para la card de contacto */
.contact-card {
  padding: 22px;
  text-align: center;
}

.contact-card p {
  margin-bottom: 18px;
  color: #444;
}

/* GALERÍA */
.gallery-img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* PROCESO */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(15px, 3vw, 20px);
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  padding: clamp(15px, 3vw, 20px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step img {
    width: 100px;
    display: block;
    margin: 0 0 16px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.step:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.social-btn img {
  width: 18px;
  height: 18px;
}

/* colores */
.wsp {
  background: #25D366;
}

.ig {
  background: #C13584;
}

.fb {
  background: #1877F2;
}

.social-btn:hover {
  opacity: 0.85;
}


/* FOOTER */
.footer {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 60px;
  border-top: 3px solid #ffb300;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffb300;
  font-weight: 600;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: #ddd;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.footer-list a:hover {
  color: #ffb300;
}

/* SEO text styling: modest, readable block that doesn't distract */
.seo-section {
  padding-top: 10px;
  padding-bottom: 10px;
}
.seo-text {
  background: transparent;
  color: #444;
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 10px;
  border-radius: 8px;
}

.footer-list img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-location {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.footer-description {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 0, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.social-icon:hover {
  background: #ffb300;
  transform: translateY(-3px);
}

.social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

/* ============================== */
/* RESPONSIVE DESIGN - MEDIA QUERIES */
/* ============================== */

/* Tablets: 768px and down */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .header .logo {
    flex-basis: auto;
    margin-bottom: 0;
    font-size: 18px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav.active {
    max-height: 400px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding: 15px 0;
    margin: 0;
  }

  .nav li {
    padding: 0;
  }

  .nav a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav a:hover {
    background: #f5f5f5;
    color: #8d6e63;
  }

  .hero {
    height: 55vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .hero-content p {
    font-size: clamp(13px, 1.5vw, 16px);
  }

  .card {
    padding-bottom: 12px;
  }

  .card h3 {
    font-size: clamp(16px, 2.5vw, 18px);
    padding: 10px 12px 0;
  }

  .card p {
    font-size: clamp(12px, 1.2vw, 14px);
    padding: 0 12px 12px;
  }

  .gallery-img {
    border-radius: 8px;
  }

  .step h3 {
    font-size: clamp(16px, 2vw, 18px);
  }

  .step p {
    font-size: clamp(12px, 1.2vw, 14px);
  }

  .social-links {
    gap: 12px;
  }

  .social-btn {
    padding: 9px 15px;
    font-size: 12px;
  }

  .social-btn img {
    width: 16px;
    height: 16px;
  }
}

/* Mobile: 480px and down */
@media (max-width: 480px) {
  .header {
    padding: 10px 12px;
    position: relative;
  }

  .header .logo {
    gap: 10px;
    font-size: 16px;
    margin-bottom: 0;
  }

  .header .logo img {
    width: 28px;
  }

  .menu-toggle {
    order: 2;
  }

  .nav ul {
    gap: 0;
    flex-direction: column;
    padding: 12px 0;
    margin: 0;
  }

  .nav li {
    padding: 0;
  }

  .nav a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
  }

  .nav a:hover {
    background: #f9f9f9;
  }

  .hero {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content {
    padding: 15px;
  }

  .hero-content h1 {
    font-size: clamp(20px, 5vw, 32px);
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: clamp(12px, 1.2vw, 14px);
    margin-bottom: 15px;
  }

  .btn-hero {
    padding: 10px 18px;
    font-size: 12px;
  }

  .section {
    padding: clamp(20px, 5vw, 30px) 12px;
  }

  h2 {
    font-size: clamp(20px, 4vw, 28px);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding-bottom: 10px;
  }

  .card h3 {
    font-size: 16px;
    padding: 10px 12px 0;
  }

  .card p {
    font-size: 12px;
    padding: 0 12px 10px;
  }

  .steps {
    gap: 12px;
  }

  .step {
    padding: 15px;
    min-width: 100%;
  }

  .step h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .step p {
    font-size: 12px;
  }

  .social-links {
    gap: 10px;
    margin: 15px 0 20px;
  }

  .social-btn {
    padding: 8px 14px;
    font-size: 11px;
    gap: 6px;
  }

  .social-btn img {
    width: 14px;
    height: 14px;
  }

  .footer {
    padding: 30px 15px 15px;
    margin-top: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 20px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-list a {
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

/* Large Screens: 1200px and up */
@media (min-width: 1200px) {
  .section {
    padding: 80px 40px;
  }

  .hero {
    height: 75vh;
  }

  .header {
    padding: 18px 40px;
  }

  .nav ul {
    gap: 30px;
  }
}