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

html, body {
  max-width: 100%;
  overflow-x: hidden; /* Elimina barras de scroll horizontales */
  box-sizing: border-box;
}

/* -------------------- Fuente -------------------- */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* Fondo blanco por defecto */
  color: #111111;
}

/* -------------------- Header y Navegaci�n -------------------- */
header {
  background-color: #000000;
  color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Branding (logo + nombre) */
.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 50px;
  height: auto;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.brand-text p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.75;
}

/* Navegaci�n - Desktop */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ff6600;
}

.nav-links li.divider {
  display: none;
}

/* -------------------- Men� Hamburguesa -------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* -------------------- Responsive - Mobile -------------------- */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .navbar {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 90vw;
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    animation: slideDown 0.3s ease forwards;
    opacity: 0;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 0;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
  }

  .nav-links li {
    width: 90%; /* ? igual que la l�nea */
    margin: 0 auto;
    padding: 0.5rem 0;
    box-sizing: border-box;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
  }

  .nav-links li.divider {
    display: block;
    height: 1px;
    width: 90%; /* ? mismo ancho que los items */
    background-color: #ff6600;
    margin: 0 auto;
    padding: 0;
    border-radius: 50px;
  }
}

/* -------------------- Hero Section -------------------- */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  background-image: url('assets/hero-desktop.jpg'); /* Ruta de tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Capa oscura con opacidad sobre la imagen */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(90, 90, 90, 0.8); /* <--- opacidad alta */
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  color: #ffffff; /* Naranja */
  max-width: 700px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hero-content h2,
.hero-content .types,
.hero-content .description {
  color: #ffffff; /* Naranja para todos los elementos */
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.hero-content .types {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  margin-top: -0.4rem;
}

.hero-content .description {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.cta-button {
  background-color: #ff6600;
  color: #ffffff;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e65000;
}

/* 📱 Responsive (igual diseño en mobile) */
@media (max-width: 768px) {
  .hero {
    height: calc(100vh - 80px);
    background-image: url('assets/hero-mobile.jpg'); /* imagen vertical centrada */
    background-position: center top;
  }

  .hero-content {
    padding: 1.5rem;
    gap: 0.6rem; /* misma separacion que desktop */
  }

  .hero-content h2 {
    font-size: 1.9rem;
  }

  .hero-content .types {
    font-size: 1rem;
  }

  .hero-content .description {
    font-size: 0.9rem;
  }
}

/* -------------------- Technical Service -------------------- */
.technical-service {
  padding: 3rem 2rem; /* Padding uniforme arriba y abajo */
  background-color: #ffffff;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title p {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 2rem;
}

/* Grid de servicios */
.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjetas individuales */
.technical-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.technical-card:hover {
  transform: translateY(-5px);
}

.technical-icon {
  width: 60px;
  margin-bottom: 1rem;
}

.technical-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222222;
}

.technical-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
}

/* -------------------- Nuestros Servicios -------------------- */
.process-section {
  padding: 3rem 2rem;
  background-color: #f8f8f8;
  text-align: center;
}

.process-slider {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding-bottom: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 330px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 42px;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #222222;
}

.step-card p {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.5;
}

/* Info-extra */
.info-extra-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.info-extra {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
}

.info-extra.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ícono + Título en la misma línea */
.info-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.info-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin: 0;
}

.info-extra h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #000000;
}

.info-extra p,
.info-extra ul {
  margin: 0;
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.5;
  padding-top: 0.5rem;
}

.info-extra ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
  .process-slider {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  .step-card {
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .technical-grid,
  .process-slider,
  .info-extra-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .technical-card,
  .step-card,
  .info-extra {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------- Brands -------------------- */

.brands {
  padding: 3rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title p {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 2rem;
}

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

.brands-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.brands-slider::-webkit-scrollbar {
  display: none;
}

.brands-slider.dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.brand-logo {
  flex: 0 0 auto;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  -webkit-user-drag: none; /* ✅ Previene arrastre en navegadores WebKit */
  pointer-events: auto;
}

.brand-logo img:hover {
  filter: none;
  opacity: 1;
}

.brand-note {
  font-size: 1rem;
  color: #666666;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* -------------------- About Me -------------------- */
.about-section {
  padding: 3rem 2rem;
  background-color: #f8f8f8;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* centra verticalmente imagen y texto */
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 260px;
  font-size: 1rem;
  line-height: 1.45;
  color: #333;
}

.about-image {
  flex: 1;
  min-width: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  max-height: 420px; /* altura reducida */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: left;
    gap: 0.8rem;
  }

  .about-text {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }

  .about-image img {
    max-width: 100%;
    height: auto;
    max-height: none;
  }
}

/* -------------------- Testimonios -------------------- */

.testimonials {
  padding: 3rem 2rem;
  background-color: #f8f8f8;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title p {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
}

.testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-slider {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonials-slider.dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  user-select: none;
}

.testimonial-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  width: 320px;
  flex: 0 0 320px;
  scroll-snap-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.testimonial-link:hover {
  transform: translateY(-4px);
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  width: 100%;
  min-height: 460px;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.testimonial-link,
.testimonial-card {
  -webkit-user-drag: none;
  user-select: none;
}

.testimonial-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.client-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #222222;
}

.stars {
  color: #ffcc00;
  font-size: 1.2rem;
}

.testimonial-text {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  min-height: 100px;
}

.testimonial-text p {
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.view-all-link {
  margin-top: 2rem;
}

.view-all-link a {
  background-color: #ff6600;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.view-all-link a:hover {
  background-color: #e65000;
}

/* Flechas */
.arrow {
  background-color: transparent;
  color: #444444;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.arrow:hover {
  color: #000000;
}

.arrow.left {
  left: -1rem;
}

.arrow.right {
  right: -1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .testimonials-slider {
    gap: 1rem;
    padding: 0.5rem 1rem;
    justify-content: flex-start;
  }

  .testimonial-link {
    width: 100%;
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .testimonial-card {
    padding: 2rem 1.2rem;
    min-height: 460px;
    max-height: 460px;
  }
}

/* -------------------- Seccion Divider -------------------- */

.section-divider {
  margin: 0 auto;
  background-color: #ff6600;
  height: 3px;
  width: 120px;
  border: none;
  border-radius: 50px;
  display: block;
}

/* -------------------- Contacto: columnas mapa + datos -------------------- */

.contact-section {
  padding: 3rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.contact-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Mapa */
.contact-map {
  flex: 1;
  min-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  display: block;
}

/* Caja de info */
.contact-box {
  flex: 1;
  min-width: 280px;
  background-color: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Título dentro del bloque de datos */
.contact-subtitle {
  font-size: 1.1rem;
  color: #333333;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Ítems individuales */
.contact-info .info-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.contact-info .info-block a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info .info-block a:hover {
  color: #ff6600;
}

.icon-svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons .icon-svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-icons .icon-svg:hover {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-columns {
    flex-direction: column;
  }

  .contact-map iframe {
    height: 300px;
  }
}

/* Desktop: mapa más ancho que datos */
@media (min-width: 769px) {
  .contact-map {
    flex: 2.5;
  }

  .contact-box {
    flex: 1;
  }
}

/* ---------------- Footer ---------------- */
.legal-footer {
  background-color: #000; /* fondo negro */
  color: #fff; /* texto blanco */
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 0.875rem; /* tama�o por defecto para desktop */
  padding: 1rem 0;
}

/* Tama�o de fuente reducido en pantallas peque�as */
@media (max-width: 600px) {
  .legal-footer {
    font-size: 0.7rem;
  }
}

/* Bot�n de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25D366;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-button img {
  width: 36px;
  height: 36px;
  filter: none;
}

/* Bot�n de llamada */
.call-button {
  position: fixed;
  bottom: 100px; /* 64px (altura del bot�n) + 16px de separaci�n */
  right: 20px;
  z-index: 1000;
  background-color: #000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-button img {
  width: 36px;
  height: 36px;
  filter: none;
}

/* Bot�n de volver arriba */
.scroll-top-button {
  position: fixed;
  bottom: 180px; /* call 100px + 64px + 16px */
  right: 20px;
  z-index: 1001 !important;
  background-color: #000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.scroll-top-button img {
  width: 32px;
  height: 32px;
  filter: none;
}

/* Mobile */
@media (max-width: 768px) {
  .whatsapp-button,
  .call-button,
  .scroll-top-button {
    width: 56px;
    height: 56px;
  }

  .whatsapp-button img {
    width: 36px;
    height: 36px;
  }

  .call-button img {
    width: 30px;
    height: 30px;
  }

  .scroll-top-button img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-button {
    bottom: 20px;
  }

  .call-button {
    bottom: 92px; /* 56 + 16 + 20 */
  }

  .scroll-top-button {
    bottom: 164px; /* 92 + 56 + 16 */
  }
}

/* ---------------- Fallas Pantalla ---------------- */

.diagnosis-section {
  padding: 3rem 2rem;
  background-color: #f8f8f8;
  text-align: center;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.diagnosis-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.diagnosis-card:hover {
  transform: translateY(-5px);
}

.diagnosis-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px; /* ✅ Aplicamos directamente el borde redondeado */
  display: block;
  margin-bottom: 1rem;
  background-color: #ffffff; /* opcional: para evitar bordes visuales en imágenes con fondo transparente */
}

.diagnosis-card h3 {
  font-size: 1.2rem;
  color: #222222;
  margin-bottom: 0.5rem;
}

.diagnosis-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
  margin-top: auto;
}

/* Tarjeta de llamado a la acción */
.diagnosis-card-full {
  grid-column: 1 / -1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
}

.diagnosis-card-full .cta-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222222;
  margin: 0;
}

.diagnosis-card-full .cta-button {
  background-color: #ff6600;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.diagnosis-card-full .cta-button:hover {
  background-color: #e65000;
}

/* Responsive */
@media (max-width: 768px) {
  .diagnosis-section {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: block;
  }

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

  .diagnosis-img {
    max-height: 220px;
  }

  .diagnosis-card-full {
    grid-column: auto;
  }
}

/* ---------------- Impresiones 3D ---------------- */

/* HERO 3D */
.impresion3d-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url('assets/hero3d-desktop.jpg');
}

/* Beneficios */
.technical-service.benefits-3d {
  padding: 3rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.technical-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.technical-card:hover {
  transform: translateY(-5px);
}

.technical-icon {
  width: 60px;
  margin-bottom: 1rem;
}

.section-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* ¿Cómo funciona? */
.process-section.process-3d {
  padding: 3rem 2rem;
  background-color: #f8f8f8;
  text-align: center;
}

.process-slider.process-3d {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 42px;
  margin-bottom: 1rem;
}

/* Formulario */
.form-section {
  background-color: #ffffff;
  padding: 3rem 2rem;
}

.cta-3d-box {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}

.form-grid input,
.form-grid textarea {
  padding: 0.6rem 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.form-grid input[type="file"] {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.form-grid textarea {
  min-height: 100px;
  resize: vertical;
}

.form-grid .g-recaptcha {
  grid-column: span 2;
}

.form-grid button#cta3dform {
  grid-column: span 2;
  background-color: #ff6600;
  color: white;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
  justify-self: center;
}

.form-grid button#cta3dform:hover {
  background-color: #e65000;
}

/* Preguntas frecuentes como tarjetas */
.faq-section {
  background-color: #f8f8f8;
  padding: 3rem 2rem;
}

.faq-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.faq-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.form-grid input[type="file"] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label[style*="grid-column: span 2"],
  .form-grid .g-recaptcha,
  .form-grid button#cta3dform {
    grid-column: span 1 !important;
  }

 .form-grid input[type="file"] {
    font-size: 0.9rem;
  }
  
  .form-grid label[style*="grid-column"] {
    grid-column: span 1 !important;
  }

  .cta-3d-box {
    padding: 2rem 1.2rem;
  }

  .impresion3d-hero {
    background-image: url('assets/hero3d-mobile.jpg'); /* Versión vertical */
    background-position: center center;
    height: calc(100vh - 80px);
  }
}

/* Sección de solicitud de retiro */
.solicitud-retiro {
  padding: 2rem;
  background-color: #fff;
  font-family: 'Montserrat', sans-serif;
  color: #222;
}

.solicitud-retiro__titulo {
  text-align: center;
  margin-bottom: 2rem;
}

.solicitud-retiro__titulo h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.solicitud-retiro__titulo p {
  font-size: 0.95rem;
  color: #555;
}

.solicitud-retiro__contenedor {
  max-width: 900px;
  margin: 0 auto;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.solicitud-retiro__info h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.solicitud-retiro__info p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.solicitud-retiro__formulario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.solicitud-retiro__formulario label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  gap: 0.3rem;
}

.solicitud-retiro__formulario input,
.solicitud-retiro__formulario textarea,
.solicitud-retiro__formulario select {
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  background-color: #fff;
  box-sizing: border-box;
}

.solicitud-retiro__formulario textarea {
  min-height: 100px;
  resize: vertical;
}

.solicitud-retiro__formulario select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill=\"%23444\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}

.solicitud-retiro__columna-completa {
  grid-column: 1 / -1;
}

.solicitud-retiro__boton {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  justify-self: center;
}

.solicitud-retiro__boton:hover {
  background-color: #e65000;
}

.solicitud-retiro__mensaje-final {
  margin-top: 2rem;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
} 

.g-recaptcha {
  display: flex;
  justify-content: center;
}

.modelo-popup-btn {
  background-color: transparent;
  color: #ff6600;
  border: 2px solid #ff6600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modelo-popup-btn:hover {
  background-color: #ff6600;
  color: white;
}

/* Modal ¿Donde encuentro el modelo? Solicitud de retiro */
.modelo-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modelo-modal__contenido {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modelo-modal__contenido img {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modelo-modal__cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #444;
}

.modelo-modal__nota {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

.ayuda-modelo-inline {
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.5rem;
  color: #ff6600;
  text-decoration: underline;
  cursor: pointer;
}

.ayuda-modelo-inline:hover {
  color: #e65000;
}

.solicitud-retiro__inline-label span {
  align-items: center;
  gap: 0.5rem;
}

/* Modal ¿Donde encuentro el modelo? Index */

.modelo-ayuda-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.modelo-ayuda-contenedor h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
}

.modelo-ayuda-contenedor .ayuda-modelo-inline {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ff6600;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}

.modelo-ayuda-contenedor .ayuda-modelo-inline:hover {
  color: #e65000;
}

/* Responsive */
@media (max-width: 768px) {
  .solicitud-retiro__formulario {
    grid-template-columns: 1fr;
  }

  .solicitud-retiro__columna-completa {
    grid-column: span 1 !important;
  }

  .solicitud-retiro__contenedor {
    padding: 1.5rem;
  }
  
  .modelo-ayuda-contenedor {
    flex-direction: left;
    align-items: left;
    text-align: left;
  }
  
  .modelo-ayuda-contenedor .ayuda-modelo-inline {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 420px) {
  .g-recaptcha {
    transform: scale(0.8);
    transform-origin: center;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}

/* ---------------- Pagina Mensaje Enviado ---------------- */

    .confirmacion-section {
      height: calc(100vh - 160px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 5rem 2rem;
      font-family: 'Montserrat', sans-serif;
    }

    .confirmacion-section h1 {
      font-size: 1.4rem;
      color: #222;
      margin-bottom: 1rem;
    }

    .confirmacion-section p {
      font-size: 1rem;
      color: #444;
      max-width: 600px;
      margin-bottom: 2rem;
    }

    .confirmacion-section a {
      text-decoration: none;
      color: #fff;
      background-color: #ff6600;
      padding: 0.8rem 1.6rem;
      border-radius: 50px;
      font-weight: 500;
      transition: background-color 0.3s ease;
    }

    .confirmacion-section a:hover {
      background-color: #e65000;
    }

    .mensaje-error {
      color: #b30000;
      font-size: 1rem;
      margin-top: 1rem;
      max-width: 600px;
    }

    @media (max-width: 480px) {
      .confirmacion-section {
        padding: 3rem 1.5rem;
      }

      .confirmacion-section h1 {
        font-size: 1.4rem;
      }

      .confirmacion-section p {
        font-size: 1rem;
      }

      .confirmacion-section a {
        font-size: 1rem;
        padding: 0.7rem 1.4rem;
      }
    }