/* VERSIÓN MEJORADA DEL CSS RESPONSIVE PARA GALLERY-MODAL */

.custom-gallery-modal {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  width: 100vw;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 0.3s;
  padding-top: 32px;
}

.custom-gallery-modal-dialog {
  height: auto;
  max-height: none;
  overflow: visible;
  width: 100%;
  max-width: 1294px;
  background: #88C0DC; /* Main light blue */
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  margin: 0 auto;
}

.custom-gallery-modal-content {
  height: auto;
  max-height: none;
  overflow: visible;
  width: 100%;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  scrollbar-width: none;
}

.custom-gallery-modal-content::-webkit-scrollbar {
  display: none;
}

.custom-gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  z-index: 10;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.custom-gallery-modal-close:hover {
  opacity: 1;
}

.custom-gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 0 32px;
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #fff;
  letter-spacing: 0.25em;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: transparent;
  top: 0;
  z-index: 5;
}
.custom-gallery-modal-number-left,
.custom-gallery-modal-number-right {
  padding-right: 21px;
  font-size: 1.1rem;
  font-family: monospace;
  opacity: 0.9;
}
.custom-gallery-modal-title {
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: #ffffff;
}
/**/
.custom-gallery-modal-image-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 1rem 0;
  width: 100%;
}
.custom-gallery-modal-img {
  max-width: 738px;
  max-height: 518px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.custom-gallery-modal-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 0 32px;
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #e40f0f;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.custom-gallery-modal-label-left {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: white;
  padding-left: 150px;
}
.custom-gallery-modal-label-right {
  text-align: right;
}

.custom-gallery-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 18px 32px;
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  border-bottom: 2.8px solid rgba(255, 255, 255, 0.558);
  margin-bottom: 18px;
}
.custom-gallery-modal-pub-label {
  text-align: left;
}
.custom-gallery-modal-date {
  text-align: right;
  font-family: monospace;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

/* Description content styling */
.custom-gallery-modal-description {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px;
  width: 100%;
  box-sizing: border-box;
}

.custom-gallery-modal-description p {
  margin-bottom: 1.5rem;
  color: #fff;
  opacity: 0.9;
}

.custom-gallery-modal-additional-image {
  margin: 2rem 0;
  text-align: center;
}

.modal-secondary-img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Add these styles to your gallery-modal.css file */

/* Style for the name span */
.custom-gallery-modal-name {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

/* Make sure the image container is positioned relatively */
.custom-gallery-modal-image-container {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .custom-gallery-modal-name {
    left: 40px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .custom-gallery-modal-name {
    left: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .custom-gallery-modal-name {
    left: 20px;
    font-size: 0.75rem;
  }
}

/* For very small screens, adjust position */
@media (max-width: 480px) {
  .custom-gallery-modal-name {
    position: static;
    display: block;
    margin-bottom: 10px;
    text-align: center;
    transform: none;
  }
  
  .custom-gallery-modal-image-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ==================== DISEÑO 2 COLUMNAS ==================== */

.modal-text-layout {
  background-color: #88c0dc;
  padding: 60px 40px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.modal-text-layout h1 {
  text-align: center;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 3.4rem;
  color: white;
  margin-bottom: 40px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.modal-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 100px;
  padding-right: 220px;
  padding-left: 220px;
}

.modal-columns > div {
  flex: 1;
}

.modal-columns p {
  color: white;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.03em;
}

/* Responsive design para tablet y móvil */
@media (max-width: 1440px) {
  .modal-columns {
    padding-right: 150px;
    padding-left: 150px;
    gap: 80px;
  }
}

@media (max-width: 1200px) {
  .modal-columns {
    padding-right: 100px;
    padding-left: 100px;
    gap: 60px;
  }
}

@media (max-width: 992px) {
  .modal-text-layout {
    padding: 50px 30px;
  }
  
  .modal-text-layout h1 {
    font-size: 2rem;
  }
  
  .modal-columns {
    padding-right: 50px;
    padding-left: 50px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .modal-text-layout h1 {
    font-size: 1.8rem;
  }
  
  .modal-columns {
    flex-direction: column;
    padding-right: 20px;
    padding-left: 20px;
    gap: 30px;
  }
  
  .modal-columns > div {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .modal-text-layout {
    padding: 40px 20px;
  }
  
  .modal-text-layout h1 {
    font-size: 1.5rem;
  }
  
  .modal-columns {
    padding-right: 10px;
    padding-left: 10px;
    gap: 20px;
  }
}

/* ==================== PROPOSED LAW ==================== */

.proposed-law-section {
  background-color: #88c0dc;
  color: white;
  padding: 60px 40px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'stara', 'Arial', sans-serif;
}

.proposed-law-section .law {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: -18px;
  color: white;
  text-transform: uppercase;
  margin-top: 0;
  padding-left: 70px;
}

.proposed-law-section hr {
  border: none;
  height: 2.8px;
  background: #fff;
  margin: 5px 0 40px 0;
  width: 100%;
}

.proposed-law-content {
  display: flex;
  flex-direction: row;
  gap: 70px;
  padding-left: 70px;
  padding-right: 40px;
}

.proposed-law-title {
  flex: 0 0 380px;
}

.proposed-law-title h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: white;
}

.proposed-law-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.5;
}

.proposed-law-text p {
  margin: 0;
  color: white;
}

.proposed-law-text strong {
  font-weight: 700;
  display: block;
  margin: 20px 0 15px 0;
}

.proposed-law-text ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 15px;
}

.proposed-law-text li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
}

.proposed-law-text li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: white;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
  .proposed-law-content {
    gap: 50px;
    padding-left: 50px;
    padding-right: 30px;
  }
  
  .proposed-law-title {
    flex: 0 0 300px;
  }
  
  .proposed-law-title h1 {
    font-size: 2.5rem;
  }
  
  .proposed-law-section .law {
    padding-left: 50px;
  }
}

@media (max-width: 992px) {
  .proposed-law-content {
    gap: 40px;
    padding-left: 30px;
    padding-right: 20px;
  }
  
  .proposed-law-title {
    flex: 0 0 250px;
  }
  
  .proposed-law-title h1 {
    font-size: 2.2rem;
  }
  
  .proposed-law-section .law {
    font-size: 2.2rem;
    padding-left: 30px;
  }
}

@media (max-width: 768px) {
  .proposed-law-section {
    padding: 40px 20px;
  }
  
  .proposed-law-content {
    flex-direction: column;
    gap: 30px;
    padding-left: 0;
    padding-right: 0;
  }
  
  .proposed-law-title {
    flex: 0 0 auto;
  }
  
  .proposed-law-title h1 {
    font-size: 2rem;
  }
  
  .proposed-law-section .law {
    font-size: 1.8rem;
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .proposed-law-section {
    padding: 30px 15px;
  }
  
  .proposed-law-title h1 {
    font-size: 1.8rem;
  }
  
  .proposed-law-section .law {
    font-size: 1.6rem;
  }
  
  .proposed-law-text {
    font-size: 0.95rem;
  }
}

/* ==================== Formulario en Gallery Modal ==================== */
/* ==================== Formulario en Gallery Modal ==================== */
.gallery-form-section {
  background-color: #88c0dc;
  color: white;
  padding: 60px 40px 80px 40px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Arial', sans-serif;
}

.gallery-form-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: -18px;
  color: white;
  text-transform: uppercase;
  margin-top: 0;
  padding-left: 70px;
}

.gallery-form-divider {
  border: none;
  height: 2.8px;
  background: #fff;
  margin: 10px 0 40px 0;
  width: 100%;
}

.gallery-form-content {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.gallery-form-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gallery-form-description {
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.5;
}

.gallery-contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.gallery-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-form-field label {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gallery-form-field input,
.gallery-form-field textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-size: 1rem;
  padding: 8px 0;
  width: 100%;
}

.gallery-form-field input:focus,
.gallery-form-field textarea:focus {
  outline: none;
  border-bottom: 2px solid white;
}

.gallery-form-field textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  padding: 10px;
  resize: vertical;
}

.gallery-submit-button {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.gallery-submit-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.gallery-home-button-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.gallery-home-button {
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 12px 40px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
}

.gallery-home-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.gallery-form-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.gallery-icon-plane {
  width: 311px;
  height: auto;
  opacity: 0.9;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
  .gallery-form-title {
    padding-left: 40px;
  }
}

@media (max-width: 992px) {
  .gallery-form-section {
    padding: 50px 30px 60px 30px;
  }
 
  .gallery-form-title {
    font-size: 2.2rem;
    padding-left: 20px;
  }
 
  .gallery-form-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-form-section {
    padding: 40px 20px 50px 20px;
  }
 
  .gallery-form-title {
    font-size: 2rem;
    padding-left: 0;
  }
 
  .gallery-form-content {
    padding-left: 0;
    padding-right: 0;
  }
 
  .gallery-form-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .gallery-form-section {
    padding: 30px 15px 40px 15px;
  }
 
  .gallery-form-title {
    font-size: 1.8rem;
  }
 
  .gallery-form-subtitle {
    font-size: 1rem;
  }
 
  .gallery-form-description {
    font-size: 0.9rem;
  }
 
  .gallery-submit-button,
  .gallery-home-button {
    font-size: 0.8rem;
  }
 
  .gallery-icon-plane {
    width: 175px;
  }
}

/* Responsividad para pantallas menores a 900px */
@media (max-width: 900px) {
  .custom-gallery-modal-label-left {
    font-size: 0.8rem;
    padding-left: 60px;
  }
  .custom-gallery-modal-img {
    max-width: 95vw;
    max-height: 45vw;
  }
}

@media (max-width: 600px) {
  .custom-gallery-modal-label-left {
    font-size: 0.75rem;
  }
  .custom-gallery-modal-img {
    max-width: 100vw;
    max-height: 60vw;
  }
  .custom-gallery-modal-image-container {
    padding: 0.5rem 0;
    gap: 10px;
  }
  .custom-gallery-modal-close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }
}

/* Responsividad para pantallas medianas y móviles */
@media (max-width: 768px) {
  .custom-gallery-modal-image-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .custom-gallery-modal-label-left {
    padding-left: 0;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .custom-gallery-modal-label-left {
    font-size: 0.75rem;
  }
  .custom-gallery-modal-image-container {
    gap: 8px;
  }
}



/* Estilos personalizados para el modal 2 */
/* CSS OPTIMIZADO PARA LOS MODALES CON PATRÓN CÍCLICO DE COLORES */

/* 
   PATRÓN DE COLORES:
   - Modal 1, 5, 9, 13: Azul original (#88C0DC) con texto blanco
   - Modal 2, 6, 10, 14: Rosa (#d58b8b) con texto blanco
   - Modal 3, 7, 11: Blanco (#ffffff) con texto azul (#88b8d6)
   - Modal 4, 8, 12: Gris (#c3c2c2) con texto casi negro (#2b2a26)
*/

/* ESTILO 1: AZUL ORIGINAL */
#custom-gallery-modal-1, 
#custom-gallery-modal-5, 
#custom-gallery-modal-9, 
#custom-gallery-modal-13 {
  --modal-bg-color: #88C0DC;
  --modal-text-color: white;
  --modal-border-color: rgba(255, 255, 255, 0.8);
}

/* ESTILO 2: ROSA */
#custom-gallery-modal-2, 
#custom-gallery-modal-6, 
#custom-gallery-modal-10, 
#custom-gallery-modal-14 {
  --modal-bg-color: #d58b8b;
  --modal-text-color: white;
  --modal-border-color: rgba(255, 255, 255, 0.8);
}

/* ESTILO 3: BLANCO CON TEXTO AZUL */
#custom-gallery-modal-3, 
#custom-gallery-modal-7, 
#custom-gallery-modal-11 {
  --modal-bg-color: #ffffff;
  --modal-text-color: #88b8d6;
  --modal-border-color: rgba(136, 184, 214, 0.8);
}

/* ESTILO 4: GRIS CON TEXTO OSCURO */
#custom-gallery-modal-4, 
#custom-gallery-modal-8, 
#custom-gallery-modal-12 {
  --modal-bg-color: #c3c2c2;
  --modal-text-color: #2b2a26;
  --modal-border-color: rgba(43, 42, 38, 0.8);
}

/* APLICACIÓN DE ESTILOS USANDO VARIABLES CSS */


.custom-gallery-modal-dialog {
  background: var(--modal-bg-color);
}

/* Secciones principales */
.modal-text-layout,
.proposed-law-section,
.gallery-form-section {
  background-color: var(--modal-bg-color);
}

/* Color de texto */
.custom-gallery-modal-title,
.custom-gallery-modal-number-left,
.custom-gallery-modal-number-right,
.custom-gallery-modal-name,
.custom-gallery-modal-pub-label,
.custom-gallery-modal-date,
.modal-text-layout h1,
.modal-columns p,
.proposed-law-section .law,
.proposed-law-title h1,
.proposed-law-text p,
.proposed-law-text strong,
.proposed-law-text li,
.gallery-form-title,
.gallery-form-subtitle,
.gallery-form-description,
.gallery-form-field label {
  color: var(--modal-text-color);
}

/* Elementos de formulario */
.gallery-form-field input,
.gallery-form-field textarea {
  border-bottom: 1px solid var(--modal-border-color);
  color: var(--modal-text-color);
}

.gallery-submit-button,
.gallery-home-button {
  border: 1px solid var(--modal-border-color);
  color: var(--modal-text-color);
}

hr,
.gallery-form-divider {
  background: var(--modal-text-color);
}