/* Las variables y estilos globales están en global.css */

/* ====================================
   PÁGINA DE INICIO - FULL WIDTH
   Estilos para que secciones específicas ocupen
   todo el ancho de la pantalla dentro del layout
   ==================================== */

/* Ajustes del layout para la página de inicio */
body.inicio-page {
  overflow-x: hidden;
}

/* Eliminar padding del main-content solo para la página de inicio */
body.inicio-page .main-content {
  padding: 0 !important;
}

body.inicio-page .main-content > .container-fluid {
  padding: 0 !important;
  max-width: 100% !important;
}

/* Wrapper de inicio para controlar el layout */
.inicio-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Secciones full-width que "rompen" el contenedor */
.hero-enhanced,
.simple-carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Secciones con contenedor interno centrado */
.section {
  width: 100%;
  box-sizing: border-box;
}

.section > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====================================
   ESTILOS DEL CAROUSEL DRO
   ==================================== */
.dro-banner-container {
  background: linear-gradient(135deg, var(--color-primary-desarrollo-urbano) 0%, var(--color-primary-dark-desarrollo-urbano) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(190, 48, 160, 0.3);
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  height: 380px;
}

.dro-content {
  flex: 1 1 340px;
  min-width: 260px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.dro-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dro-subtitle {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.dro-description {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: auto;
  font-weight: 600;
}


.btn-dro {
  background: white;
  color: var(--color-primary-desarrollo-urbano);
  padding: 0.9rem 2rem;
  border-radius: 2.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
}

.btn-dro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--color-primary-desarrollo-urbano);
}

.dro-image {
  flex: 1 1 280px;
  min-width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.dro-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  animation: floatDRO 3s ease-in-out infinite alternate;
}

/* ====================================
   ESTILOS DEL BANNER URBANISMO
   ==================================== */
.urbanismo-reportes-banner {
  background: linear-gradient(90deg, var(--color-bg-section) 60%, var(--color-primary-light-accent) 100%);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  height: 380px;
}

.urbanismo-banner-text {
  flex: 1 1 340px;
  min-width: 260px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.urbanismo-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-accent);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.urbanismo-desc {
  font-size: 1.05rem;
  color: var(--color-dark-text);
  line-height: 1.5;
  margin-bottom: auto;
}

.urbanismo-desc span {
  color: var(--color-primary-accent);
  font-weight: 600;
}

.urbanismo-banner-img {
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.urbanismo-banner-img img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px var(--color-primary-light-accent));
  border-radius: 1.2rem;
  animation: floatY 2.8s ease-in-out infinite alternate;
}

/* ====================================
   ESTILOS DE CONTACTO Y FAQ
   Diseño consistente con el resto del sitio
   ==================================== */
.contact-section {
  background: linear-gradient(120deg, #f8fafc 80%, #f3e8ff 100%);
  border-radius: 0;
  padding: 3rem 0;
  margin-top: 0;
  max-width: 100%;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-info-col {
  flex: 1 1 340px;
  min-width: 290px;
  max-width: 420px;
  background: rgba(211, 70, 180, 0.04);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(211, 70, 180, 0.04);
}

.contact-title {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--color-primary-desarrollo-urbano);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-title:after {
  display: none;
}

.title-icon {
  width: 2.2rem;
  height: 2.2rem;
  background: #f3e8ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-desarrollo-urbano);
  font-size: 1rem;
}

.horario-box {
  background: rgba(211, 70, 180, 0.06);
  border-radius: 0.75rem;
  padding: 1.2rem;
  margin-top: 1rem;
  border: 1.5px solid #e9d5ff;
}

.horario-content {
  font-size: 1rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.horario-icon {
  width: 2rem;
  height: 2rem;
  background: #f3e8ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-desarrollo-urbano);
  flex-shrink: 0;
  font-size: 1rem;
}

.horario-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-primary-desarrollo-urbano);
}

.comments-col {
  flex: 1 1 420px;
  min-width: 320px;
  background: rgba(211, 70, 180, 0.04);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(211, 70, 180, 0.04);
}

.comments-title {
  font-size: 1.2rem;
  color: var(--color-primary-desarrollo-urbano);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comments-form textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 0.75rem;
  border: 1.5px solid #e9d5ff;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1rem;
  background: #fff;
}

.comments-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-desarrollo-urbano);
  box-shadow: 0 0 0 2px rgba(211, 70, 180, 0.1);
}

.btn-submit {
  width: 100%;
  background: rgba(211, 70, 180, 0.13);
  color: var(--color-primary-desarrollo-urbano);
  border: none;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.btn-submit:hover {
  background: rgba(16, 185, 129, 0.13);
  color: var(--color-secondary-desarrollo-urbano);
}

.comments-list {
  margin-top: 1rem;
  max-height: 120px;
  overflow-y: auto;
}

.comment {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
  color: var(--color-dark-text);
  box-shadow: 0 1px 4px rgba(211, 70, 180, 0.04);
}

.comment-header {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.comment-text {
  color: #2d3748;
}

.faq-section-inline {
  margin-top: 1.5rem;
}

.faq-header-inline {
  font-weight: 700;
  color: var(--color-primary-desarrollo-urbano);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: #f3e8ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-desarrollo-urbano);
  font-size: 0.75rem;
}

.faq-search-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e9d5ff;
  font-size: 1rem;
  background: #fff;
  color: #4a5568;
  outline: none;
  margin-bottom: 1rem;
}

.faq-search-input:focus {
  border-color: var(--color-primary-desarrollo-urbano);
  box-shadow: 0 0 0 2px rgba(211, 70, 180, 0.1);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

/* ====================================
   ESTILOS DE TARJETAS DE INFO
   ==================================== */
.info-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-primary-desarrollo-urbano-light, #e9d5ff);
}

.card-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Enhanced Design Variables */
:root {
  --gradient-primary: linear-gradient(135deg, var(--color-primary-desarrollo-urbano) 0%, var(--color-primary-dark-desarrollo-urbano) 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.titulo-principal {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.7rem;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(40,0,40,0.18), 0 1px 0 rgba(0,0,0,0.10);
  letter-spacing: 0.5px;
}

.subtitulo-hero {
  font-size: 1.35rem;
  color: #f3e8ff;
  margin-bottom: 2.2rem;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(40,0,40,0.10);
}

.hero-botones {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-primary-desarrollo-urbano);
  margin-bottom: 1.1rem;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.2px;
}

.search-box-margen {
  margin-bottom: 2.2rem;
}

.tramite-item-margen {
  margin-bottom: 2rem;
}

.card-body-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tramite-img-margen {
  margin-bottom: 0.7rem;
}

.card-title-margen {
  margin-bottom: 0.7rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/urupan-hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  box-shadow: 0 8px 32px rgba(80, 0, 80, 0.08);
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  animation: fadeInDown 1s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  background: rgba(40, 0, 40, 0.25);
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(211, 70, 180, 0.08);
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-primary-desarrollo-urbano);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark-desarrollo-urbano);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 2px solid var(--color-primary-desarrollo-urbano);
  color: var(--color-primary-desarrollo-urbano);
  background: white;
}

.btn-outline:hover {
  background-color: var(--color-primary-desarrollo-urbano);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row#tramites-grid {
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-wrap: wrap;
}

.col-md-4 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  display: flex;
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  box-sizing: border-box;
}

@media (max-width: 1199.98px) and (min-width: 900px) {
  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 899.98px) {
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 599.98px) {
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .container {
    padding: 0 0.3rem;
  }
  .tramite-card {
    padding: 1rem !important;
  }
}

/* Ajuste de la tarjeta para que no se vea tan larga en pantallas medianas/pequeñas */
.tramite-card {
  min-height: 340px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1.5px solid #e9d5ff;
  position: relative;
  overflow: hidden;
}

/* Ajuste para que la disponibilidad (badge) no se salga del bloque */
.tramite-card .disponibilidad-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-radius: 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  color: #222;
  background: var(--color-secondary-desarrollo-urbano);
  /* El color de fondo real se aplica inline */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Elimina espacio extra en la imagen y centra mejor */
.tramite-img {
  height: 100px; /* antes 120px */
  display: flex;
  align-items: flex-start; /* Cambia de center a flex-start para pegar arriba */
  justify-content: center;
  margin-bottom: 0.5rem; /* Reduce el espacio inferior */
  margin-top: -0.7rem; /* Sube la imagen hacia arriba del card */
}

.tramite-img img {
  max-height: 80px; /* Reduce el tamaño de la imagen */
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(211, 70, 180, 0.1));
  border-radius: 18px;
  background: #fff;
  padding: 4px;
  margin-top: 0; /* Elimina cualquier margen superior */
}

/* Ajuste de FAQ para menos espacio lateral en móvil */
@media (max-width: 600px) {
  .faq-section {
    padding: 1.2rem 0.3rem;
  }
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.section-title:before {
  content: none !important;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary-desarrollo-urbano);
  border-radius: 2px;
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: none;
}

.tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tramite-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-desarrollo-urbano);
}

.tramite-card p {
  margin-bottom: 1rem;
  color: var(--dark);
  flex-grow: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-grid .card {
  padding: 2rem 1.5rem !important;
  margin-bottom: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.info-grid .card h3 {
  margin-bottom: 1.2rem;
}
.info-grid .card p {
  margin-bottom: 0;
  font-size: 1.08rem;
  color: var(--dark);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  background-color: var(--color-primary-desarrollo-urbano);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-container {
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box {
  max-width: 520px;
  margin: 0 auto 2.5rem auto;
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0 2px 12px rgba(211, 70, 180, 0.08);
  display: flex;
  align-items: center;
  padding: 0.3rem 1.2rem 0.3rem 1.2rem;
  border: 1.5px solid #e9d5ff;
  position: relative;
}
.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  border-color: var(--secondary);
}
.search-icon {
  color: var(--color-primary-desarrollo-urbano);
  font-size: 1.3rem;
  margin-right: 0.7rem;
  margin-left: 0.2rem;
}
.search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.08rem;
  flex: 1;
  padding: 0.8rem 0;
  color: var(--dark);
}
.search-input::placeholder {
  color: #bdbdbd;
  font-size: 1.03rem;
}
@media (max-width: 600px) {
  .search-box {
    max-width: 100%;
    padding: 0.2rem 0.5rem;
  }
  .search-input {
    font-size: 1rem;
    padding: 0.6rem 0;
  }
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary-desarrollo-urbano);
}

.bg-light {
  background-color: var(--light);
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  border-radius: 1rem;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 2rem auto;
}

.contact-section {
  background: linear-gradient(120deg, #f8fafc 80%, #f3e8ff 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(211, 70, 180, 0.07);
  padding: 3rem 2rem 2.5rem 2rem;
  margin-top: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
  background: rgba(211, 70, 180, 0.04);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  transition: background 0.2s;
}
.contact-list li:hover {
  background: rgba(16, 185, 129, 0.08);
}
.contact-list i {
  font-size: 1.5rem;
  color: var(--color-primary-desarrollo-urbano);
  margin-right: 1rem;
  background: #f3e8ff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-list a {
  color: var(--color-primary-desarrollo-urbano);
  text-decoration: none;
  font-weight: 500;
}
.contact-list a:hover {
  text-decoration: underline;
}

.faq-section {
  margin-top: 3rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(211, 70, 180, 0.07);
  padding: 2.5rem 2rem 2.8rem 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.faq-header-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary-desarrollo-urbano);
  margin-bottom: 0.5rem;
}
.faq-header-desc {
  color: var(--gray);
  font-size: 1.13rem;
  margin-bottom: 0.2rem;
}
.faq-list {
  margin: 0 auto;
  max-width: 750px;
}
.faq-item {
  background: #f8fafc;
  border-radius: 1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 6px rgba(211, 70, 180, 0.05);
  padding: 1.1rem 1.5rem 1.1rem 1.2rem;
  transition: box-shadow 0.2s;
  cursor: pointer;
  border: 1.5px solid #f3e8ff;
}
.faq-item.active,
.faq-item:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  border-color: var(--secondary);
  background: #f3e8ff;
}
.faq-question {
  font-weight: 600;
  color: var(--color-primary-desarrollo-urbano);
  font-size: 1.09rem;
  display: flex;
  align-items: center;
}
.faq-question i {
  margin-right: 0.7rem;
  font-size: 1.2rem;
  color: var(--secondary);
}
.faq-answer {
  display: none;
  margin-top: 0.6rem;
  color: var(--dark);
  font-size: 1.01rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.5s;
}
@media (max-width: 600px) {
  .faq-section {
    padding: 1.2rem 0.3rem;
  }
  .faq-list {
    padding: 0 0.2rem;
  }
  .faq-header-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-section,
  .faq-section {
    padding: 1.5rem 0.5rem;
  }
}

/* Botones principales difuminados y modernos */
.btn-glass {
  background: rgba(211, 70, 180, 0.18);
  color: var(--color-primary-desarrollo-urbano);
  border: none;
  box-shadow: 0 4px 24px rgba(211, 70, 180, 0.1);
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-weight: 600;
}
.btn-glass:hover,
.btn-glass:focus {
  background: rgba(16, 185, 129, 0.18);
  color: var(--secondary);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.13);
}

/* Botón primario para tarjetas de trámite */
.card .btn-primary {
  background: rgba(211, 70, 180, 0.13);
  color: var(--color-primary-desarrollo-urbano);
  border: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.card .btn-primary:hover,
.card .btn-primary:focus {
  background: rgba(16, 185, 129, 0.13);
  color: var(--secondary);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.12);
}

/* Quitar contornos de botones outline */
.btn-outline {
  border: none;
  background: rgba(211, 70, 180, 0.1);
  color: var(--color-primary-desarrollo-urbano);
}
.btn-outline:hover,
.btn-outline:focus {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

/* Contacto horizontal */
.contact-section {
  background: linear-gradient(120deg, #f8fafc 80%, #f3e8ff 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(211, 70, 180, 0.07);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.contact-info-col {
  flex: 1 1 320px;
  min-width: 280px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
  background: rgba(211, 70, 180, 0.04);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  transition: background 0.2s;
}
.contact-list li:hover {
  background: rgba(16, 185, 129, 0.08);
}
.contact-list i {
  font-size: 2rem;
  color: var(--color-primary-desarrollo-urbano);
  margin-right: 1.2rem;
  background: #f3e8ff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-list a {
  color: var(--color-primary-desarrollo-urbano);
  text-decoration: underline;
  font-weight: 500;
}
/* Comentarios */
.comments-col {
  flex: 1 1 340px;
  min-width: 300px;
  background: rgba(211, 70, 180, 0.04);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(211, 70, 180, 0.04);
}
.comments-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-desarrollo-urbano);
  margin-bottom: 1rem;
}
.comments-form textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 0.75rem;
  border: 1.5px solid #e9d5ff;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1rem;
  background: #fff;
}
.comments-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-desarrollo-urbano);
  box-shadow: 0 0 0 2px rgba(211, 70, 180, 0.1);
}
.comments-form .btn-glass {
  width: 100%;
}
.comments-list {
  margin-top: 1.5rem;
  max-height: 120px;
  overflow-y: auto;
}
.comments-list .comment {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(211, 70, 180, 0.04);
}
@media (max-width: 900px) {
  .contact-section {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
  }
  .comments-col,
  .contact-info-col {
    min-width: 0;
    width: 100%;
  }
}

/* Footer profesional - Colores consistentes con el tema rosado/magenta */
.footer {
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
  color: #e2e8f0;
  padding: 3rem 0 1.5rem 0;
  margin-top: 0;
  border-top: 4px solid var(--color-primary-desarrollo-urbano);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding: 0 2rem;
}
.footer-col {
  min-width: 200px;
}
.footer-col h4 {
  color: var(--color-primary-desarrollo-urbano);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo img {
  height: 58px;
  margin-right: 0.5rem;
  filter: brightness(1.1);
}
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover {
  color: var(--color-primary-desarrollo-urbano);
  padding-left: 4px;
}
.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--color-primary-desarrollo-urbano);
}
.footer-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(190, 48, 160, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-desarrollo-urbano);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--color-primary-desarrollo-urbano);
  color: #fff;
  transform: translateY(-3px);
}
/* Footer bottom con logo */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 60px;
  filter: brightness(1.1);
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-links li,
  .footer-contact li {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
}

/* Sección de ayuda profesional */
.help-section {
  margin-top: 3.5rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(211, 70, 180, 0.07);
  padding: 2.5rem 2rem 2.8rem 2rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}
.help-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.help-header-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-primary-desarrollo-urbano);
  margin-bottom: 0.5rem;
}
.help-header-desc {
  color: var(--gray);
  font-size: 1.13rem;
  margin-bottom: 0.2rem;
}
.help-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.help-faq {
  flex: 2 1 340px;
  min-width: 260px;
}
.help-faq-list {
  margin: 0 auto;
  max-width: 700px;
}
.help-faq-item {
  background: #f8fafc;
  border-radius: 1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 6px rgba(211, 70, 180, 0.05);
  padding: 1.1rem 1.5rem 1.1rem 1.2rem;
  transition: box-shadow 0.2s;
  cursor: pointer;
  border: 1.5px solid #f3e8ff;
}
.help-faq-item.active,
.help-faq-item:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  border-color: var(--secondary);
  background: #f3e8ff;
}
.help-faq-question {
  font-weight: 600;
  color: var(--color-primary-desarrollo-urbano);
  font-size: 1.09rem;
  display: flex;
  align-items: center;
}
.help-faq-question i {
  margin-right: 0.7rem;
  font-size: 1.2rem;
  color: var(--secondary);
}
.help-faq-answer {
  display: none;
  margin-top: 0.6rem;
  color: var(--dark);
  font-size: 1.01rem;
  line-height: 1.7;
}
.help-faq-item.active .help-faq-answer {
  display: block;
  animation: fadeIn 0.5s;
}
.help-contact {
  flex: 1 1 220px;
  min-width: 200px;
  background: #f3e8ff;
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 12px rgba(211, 70, 180, 0.07);
  margin-top: 0.7rem;
}
.help-contact-title {
  color: var(--color-primary-desarrollo-urbano);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.help-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-contact-list li {
  margin-bottom: 1.1rem;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
}
.help-contact-list i {
  color: var(--color-primary-desarrollo-urbano);
  margin-right: 0.7rem;
  font-size: 1.2rem;
}
.help-contact-list a {
  color: var(--color-primary-desarrollo-urbano);
  text-decoration: underline;
  font-weight: 500;
}
@media (max-width: 900px) {
  .help-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .help-contact {
    margin-top: 0;
  }
}
@media (max-width: 600px) {
  .help-section {
    padding: 1.2rem 0.3rem;
  }
.help-header-title {
    font-size: 1.3rem;
  }
}

/* Enhanced Hero Section */
.hero-enhanced {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%),
              url('../images/urupan-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-content-enhanced {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 3rem 2rem;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Buttons */
.btn-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary-enhanced {
  background: white;
  color: var(--color-primary-desarrollo-urbano);
  box-shadow: var(--shadow-lg);
}

.btn-primary-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--color-primary-dark-desarrollo-urbano);
}

.btn-secondary-enhanced {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-enhanced:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

/* Simple Carousel Section */
.simple-carousel-section {
  padding: 2rem 0;
  background: transparent;
}

.carousel-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Simple Carousel Container */
.simple-carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Ocultar slide de Video Tutoriales en todas las vistas */
.tutoriales-slide {
  display: none !important;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Auto-scroll manejado por JavaScript - sin animación CSS para evitar conflictos */

.carousel-slide {
  min-width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  margin: 0 1rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

/* Simple Carousel Navigation */
.simple-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.simple-carousel-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-primary-desarrollo-urbano);
  color: var(--color-primary-desarrollo-urbano);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.simple-carousel-btn:hover {
  background: var(--color-primary-desarrollo-urbano);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.simple-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.simple-carousel-indicators .carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(190, 48, 160, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.simple-carousel-indicators .carousel-indicator.active {
  background: var(--color-primary-desarrollo-urbano);
  transform: scale(1.2);
}

/* Carousel Slide Content */
.slide-icon {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.slide-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.slide-description {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.slide-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.slide-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  border-radius: 0.5rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.feature-text {
  font-size: 0.85rem;
  color: #4a5568;
  font-weight: 500;
}

/* DRO Section */
.dro-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 4rem 0;
}

.dro-banner {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(102, 126, 234, 0.1);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.dro-icon {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.dro-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.dro-description {
  font-size: 1.1rem;
  color: #e8eaee;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Enhanced Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  padding: 4rem 0;
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: white;
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.2);
}

.testimonial-avatar {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-text {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 3rem;
  color: rgba(102, 126, 234, 0.2);
  font-weight: bold;
  line-height: 1;
}

.testimonial-author {
  font-weight: 700;
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.testimonial-card .col-md-4:nth-child(1) .testimonial-card,
.testimonial-card .col-md-4:nth-child(4) .testimonial-card {
  border-left: 4px solid #667eea;
}

.testimonial-card .col-md-4:nth-child(2) .testimonial-card,
.testimonial-card .col-md-4:nth-child(5) .testimonial-card {
  border-left: 4px solid #764ba2;
}

.testimonial-card .col-md-4:nth-child(3) .testimonial-card,
.testimonial-card .col-md-4:nth-child(6) .testimonial-card {
  border-left: 4px solid #f093fb;
}

/* ====================================
   RESPONSIVE MOBILE-FIRST DESIGN
   ==================================== */

/* Tablet adjustments (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-enhanced {
    min-height: 55vh;
  }
  
  .hero-content-enhanced {
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .simple-carousel-container {
    max-width: 100%;
  }
  
  /* FAQ Grid - 1 columna en tablet */
  .faq-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Footer ajuste */
  .footer-content > div {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Mobile adjustments (hasta 768px) */
@media (max-width: 768px) {
  /* === CONTENEDORES PRINCIPALES - MARGEN MÍNIMO === */
  .main-content,
  .container-fluid,
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Contenedor principal full width */
  .main-content {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Section containers con mínimo margen */
  .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .section > .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  /* === HERO SECTION MOBILE - CENTRADO === */
  .hero-enhanced {
    background-attachment: scroll;
    min-height: 35vh;
    padding: 1.5rem 1rem;
    /* Reset de márgenes negativos para móvil */
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero-content-enhanced {
    padding: 1.5rem 1rem !important;
    max-width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }
  
  .hero-botones {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    align-items: center !important;
  }
  
  .hero-botones .btn-enhanced {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  /* === CARRUSEL MOBILE - TARJETAS COMPACTAS HORIZONTALES === */
  .simple-carousel-section {
    padding: 1rem 0;
  }
  
  .carousel-content {
    padding: 0 0.5rem;
  }
  
  .simple-carousel-container {
    max-width: 100%;
  }
  
  /* Mostrar indicadores en móvil */
  .simple-carousel-indicators {
    display: flex !important;
    margin-top: 1rem;
  }
  
  /* Ocultar navegación de botones en móvil */
  .simple-carousel-nav {
    display: none !important;
  }
  
  /* === CARRUSEL MÓVIL - MANTENER TRANSFORM DEL JS === */
  .carousel-track {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.5rem 0;
    /* Permitir que el JS controle el transform */
  }
  
  /* Carousel slide transparente - solo muestra el contenido interno */
  .carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }
  
  /* Las tarjetas internas (DRO y Reportes) - ALTURA Y ANCHO FIJOS */
  .carousel-slide .dro-banner-container,
  .carousel-slide .urbanismo-reportes-banner {
    margin: 0 0.5rem !important;
    border-radius: 1rem !important;
    min-height: 200px !important;
    max-height: 200px !important;
    height: 200px !important;
    overflow: hidden !important;
    /* Limitar ancho horizontal */
    width: calc(100% - 1rem) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
  
  /* Forzar el slide contenedor a no expandirse */
  .carousel-slide {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Indicador visual de que se puede deslizar */
  .simple-carousel-section::after {
    content: 'Desliza o toca los puntos';
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.4);
    margin-top: 0.5rem;
  }
  
  /* ========================================
     DISEÑO COMPACTO HORIZONTAL PARA MÓVIL
     - Tarjetas tipo "list item" con icono + texto + botón
     ======================================== */
  
  /* DRO Slide Mobile - Diseño compacto vertical */
  .dro-banner-container {
    padding: 1.25rem !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
    gap: 1rem !important;
    align-items: stretch !important;
    border-radius: 1rem !important;
  }
  
  /* Ocultar imagen en móvil para diseño compacto */
  .dro-image {
    display: none !important;
  }
  
  .dro-content {
    gap: 0.75rem !important;
  }
  
  .dro-content h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .dro-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .dro-description {
    font-size: 0.9rem !important;
    display: block !important;
    margin-bottom: 1rem !important;
  }
  
  .btn-dro {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
  }
  
  /* Ocultar decoraciones de fondo en móvil */
  .dro-banner-container > div[style*="position: absolute"],
  .urbanismo-reportes-banner > div[style*="position: absolute"],
  .tutoriales-banner-container > div[style*="position: absolute"] {
    display: none !important;
  }
  
  .dro-content {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .dro-content .dro-header {
    margin-bottom: 0.5rem !important;
  }
  
  .dro-content .dro-header > div {
    margin-bottom: 0 !important;
  }
  
  /* Icono más pequeño */
  .dro-content .dro-header > div > div:first-child {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1rem !important;
    border-radius: 0.5rem !important;
    flex-shrink: 0;
  }
  
  .dro-content h3 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  
  .dro-content .dro-header p {
    font-size: 0.8rem !important;
    margin: 0 !important;
  }
  
  /* Ocultar descripción larga y features en móvil */
  .dro-content > p,
  .dro-features {
    display: none !important;
  }
  
  /* Botón compacto */
  .dro-content a[href*="dro"] {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 1.5rem !important;
    white-space: nowrap;
  }
  
  /* Participación Ciudadana Slide Mobile - FORZAR ALTURA FIJA IGUAL QUE DRO */
  .urbanismo-reportes-banner {
    padding: 1.25rem !important;
    flex-direction: column !important;
    min-height: 200px !important;
    height: 200px !important;
    max-height: 200px !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    border-radius: 1rem !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }
  
  .urbanismo-banner-img {
    display: none !important;
  }
  
  .urbanismo-banner-text {
    flex: 1 !important;
    min-width: 0 !important;
    gap: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }
  
  .urbanismo-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
  }
  
  .urbanismo-desc {
    font-size: 0.8rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    flex-shrink: 1 !important;
  }
  
  .urbanismo-banner-text .btn,
  .btn-nuevo-tramite {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 2rem !important;
    flex-shrink: 0 !important;
  }
  
  /* Video Tutoriales Slide Mobile - Diseño compacto */
  .tutoriales-banner-container {
    padding: 1rem !important;
    flex-direction: row !important;
    min-height: auto !important;
    gap: 0.75rem !important;
    align-items: center !important;
    border-radius: 0.75rem !important;
  }
  
  .tutoriales-preview {
    display: none !important;
  }
  
  .tutoriales-content {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  .tutoriales-content .tutoriales-header {
    margin-bottom: 0.5rem !important;
  }
  
  .tutoriales-content .tutoriales-header > div {
    margin-bottom: 0 !important;
  }
  
  .tutoriales-content .tutoriales-header > div > div:first-child {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1rem !important;
    border-radius: 0.5rem !important;
    flex-shrink: 0;
  }
  
  .tutoriales-content h3 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  
  .tutoriales-content .tutoriales-header p {
    font-size: 0.8rem !important;
    margin: 0 !important;
  }
  
  .tutoriales-content > p,
  .tutoriales-features {
    display: none !important;
  }
  
  .tutoriales-content a[href*="tutorial"] {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 1.5rem !important;
    white-space: nowrap;
  }
  
  /* Ocultar slide de Video Tutoriales en móvil */
  .tutoriales-slide {
    display: none !important;
  }
  
  /* Ocultar icono de trámites en móvil */
  .tramite-img,
  .tramite-img-margen {
    display: none !important;
  }
  
  /* === SECCIONES GENERALES MOBILE === */
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title:after {
    width: 40px;
    height: 3px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* === MAPA MOBILE === */
  .map-container {
    height: 280px;
    border-radius: 0.75rem;
  }
  
  /* === BUSCADOR MOBILE === */
  .search-box {
    margin: 0 0 1.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 0.6rem 0;
  }
  
  .search-input::placeholder {
    font-size: 0.9rem;
  }
  
  .search-icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
  }
  
  /* === TARJETAS DE TRÁMITES MOBILE === */
  .tramites-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tramite-card {
    min-height: auto;
    max-width: 100%;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .tramite-card h3,
  .tramite-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .tramite-card p,
  .tramite-card .card-text {
    font-size: 0.9rem;
    min-height: auto !important;
    margin-bottom: 0.75rem !important;
  }
  
  .tramite-img {
    height: 70px;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }
  
  .tramite-img img {
    max-height: 60px;
    max-width: 60px;
  }
  
  .disponibilidad-badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .tramite-card ul {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .tramite-card ul li {
    margin-bottom: 0.35rem !important;
  }
  
  .tramite-card .btn {
    padding: 0.85rem 1rem;
    font-size: 1rem !important;
    min-height: 48px; /* Touch-friendly */
  }
  
  /* === INFO GRID MOBILE === */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .info-grid .card {
    padding: 1.25rem !important;
    min-height: auto;
  }
  
  .info-grid .card h3 {
    font-size: 1.1rem;
  }
  
  .info-grid .card p {
    font-size: 0.95rem;
  }
  
  /* === CONTACTO Y FAQ MOBILE === */
  .contact-section {
    padding: 1.5rem 0.75rem !important;
    margin-top: 2rem;
    gap: 1.5rem !important;
    flex-direction: column !important;
  }
  
  .contact-info-col,
  .comments-col {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
    border-radius: 1rem !important;
  }
  
  .contact-info-col h2,
  .comments-col h4 {
    font-size: 1.2rem !important;
  }
  
  .contact-list li {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-list i {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    margin-right: 0.75rem;
  }
  
  /* FAQ Mobile */
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .faq-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
  }
  
  .faq-answer {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  #faq-search {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  
  /* Comentarios Mobile */
  .comments-form textarea {
    min-height: 100px;
    font-size: 1rem;
    padding: 0.85rem;
  }
  
  .comments-form button {
    padding: 0.85rem 1rem;
    min-height: 48px;
  }
  
  /* === FOOTER MOBILE === */
  .footer {
    padding: 1.5rem 0 1rem 0;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-content > div {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .footer-logo img {
    height: 1.75rem;
  }
  
  .footer-links,
  .footer-contact {
    font-size: 0.9rem;
  }
  
  .footer-links li,
  .footer-contact li {
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  
  .footer-social {
    margin-top: 1rem;
    text-align: center;
  }
  
  .footer-copy {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    padding: 0 1rem;
  }
  
  /* === MODAL TUTORIAL MOBILE === */
  #tutorialModal > div {
    padding: 1rem;
    min-height: 100vh;
    align-items: flex-start;
  }
  
  #tutorialModal > div > div {
    border-radius: 1rem;
    max-height: 95vh;
  }
  
  #tutorialModal h3 {
    font-size: 1.2rem !important;
  }
  
  #tutorialModal p {
    font-size: 0.95rem !important;
  }
  
  /* Video placeholder en modal */
  #tutorialModal > div > div > div:nth-child(2) > div:nth-child(2) {
    height: 200px !important;
  }
  
  /* Tutorial topics grid */
  #tutorialModal > div > div > div:nth-child(2) > div:nth-child(3) {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Small Mobile (hasta 480px) */
@media (max-width: 480px) {
  /* Hero más compacto */
  .hero-enhanced {
    min-height: 45vh;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  /* Carrusel slides más compactos */
  .carousel-slide {
    padding: 1rem;
  }
  
  .dro-banner-container,
  .urbanismo-reportes-banner,
  .tutoriales-banner-container {
    padding: 1rem !important;
  }
  
  .dro-content h3,
  .tutoriales-content h3,
  .urbanismo-banner-text > div:first-child {
    font-size: 1.15rem !important;
  }
  
  .dro-image img,
  .urbanismo-banner-img img {
    max-width: 120px !important;
  }
  
  /* Secciones */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.35rem;
  }
  
  /* Tramite cards */
  .tramite-card {
    padding: 1rem;
  }
  
  .tramite-card .card-title {
    font-size: 1rem;
  }
  
  /* Mapa más pequeño */
  .map-container {
    height: 220px;
  }
  
  /* Contacto y FAQ */
  .contact-info-col,
  .comments-col {
    padding: 1rem !important;
  }
  
  .contact-list li {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .contact-list i {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .faq-item {
    padding: 0.85rem;
  }
  
  .faq-question {
    font-size: 0.9rem;
  }
}

/* === TOUCH-FRIENDLY IMPROVEMENTS === */
@media (pointer: coarse) {
  /* Aumentar áreas táctiles */
  .btn,
  .btn-enhanced,
  .btn-primary,
  .btn-glass {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }
  
  .faq-item {
    min-height: 48px;
    padding: 1rem;
  }
  
  .contact-list li a,
  .footer-links a {
    padding: 0.5rem 0;
    display: inline-block;
  }
  
  .simple-carousel-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  /* Espaciado extra para elementos táctiles */
  .carousel-indicator {
    width: 16px;
    height: 16px;
    margin: 0 4px;
  }
}

/* === SAFE AREA INSETS (para iPhones con notch) === */
@supports (padding: max(0px)) {
  .hero-enhanced {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  
  .footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* === LANDSCAPE MOBILE === */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-enhanced {
    min-height: 80vh;
  }
  
  .hero-content-enhanced {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-botones {
    flex-direction: row !important;
    gap: 1rem !important;
  }
  
  .hero-botones .btn-enhanced {
    width: auto;
  }
  
  /* Stack de carrusel horizontal en landscape */
  .carousel-track {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .carousel-slide {
    min-width: 85%;
    scroll-snap-align: center;
  }
}

/* === REDUCE MOTION === */
@media (prefers-reduced-motion: reduce) {
  .hero-enhanced,
  .carousel-track,
  .carousel-slide,
  .btn-enhanced,
  .card,
  .tramite-card,
  .faq-item {
    transition: none !important;
    animation: none !important;
  }
  
  .dro-image img,
  .urbanismo-banner-img img,
  .tutoriales-preview > div {
    animation: none !important;
  }
}

/* === PRINT STYLES === */
@media print {
  .hero-enhanced,
  .simple-carousel-section,
  .simple-carousel-nav,
  .simple-carousel-indicators,
  .footer-social,
  #tutorialModal {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .tramite-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Enhanced Carousel Animations */
@keyframes floatY {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-10px); 
  }
}

@keyframes floatX {
  0%, 100% { 
    transform: translateX(0px); 
  }
  50% { 
    transform: translateX(10px); 
  }
}

@keyframes floatDRO {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-15px) rotate(2deg); 
  }
}

@keyframes floatVideo {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
  }
  50% { 
    transform: translateY(-8px) scale(1.02); 
  }
}

/* Enhanced Banner Styles */
.urbanismo-reportes-banner {
  position: relative;
  overflow: hidden;
}

.urbanismo-reportes-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* DRO Enhanced Styles */
.dro-banner-container {
  position: relative;
  overflow: hidden;
}

.dro-banner-container::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.05));
  animation: spin 25s linear infinite;
  z-index: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Video Tutorial Enhanced Styles */
.tutoriales-banner-container {
  position: relative;
  overflow: hidden;
}

.tutoriales-banner-container::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.5; 
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.8; 
  }
}

/* Enhanced Hover Effects */
.carousel-slide:hover .dro-image img {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
}

.carousel-slide:hover .tutoriales-preview > div {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(245, 87, 108, 0.2);
}

.carousel-slide:hover .urbanismo-banner-img img {
  transform: scale(1.03);
  filter: drop-shadow(0 12px 40px var(--color-primary-light-accent));
}

/* Enhanced Shadow Variables */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
