* {
    
}

body {
  

}
.depre{
  padding: 20px;
  background-color: #fffaf0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;

}

/**/

.white-strip {
  background-color: white; /* franja blanca */
  padding: 6px 0;           /* más estrecha */
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  
}

.white-strip h2 {
  text-align: center;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000; 
}


#primerafila {
    margin-top: 4%;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.text-input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.text-input:focus {
    outline: none;
    border-color: #4a90e2;
}




/*FILAS HASTA LA 3*/
.color-fondo{
    background-color: #fffaf0;
    padding-bottom: 40px;
    margin-top: -30px;
}
.row {
  display: flex;
  margin-top: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;  
  gap: 20px;
  padding: 15px;
  text-align: right;
  align-items: center;
  font-family: 'Glacial Indifference', 'Helvetica Neue', Helvetica, Arial, sans-serif; 

}

.row-2 {
    margin-bottom: 0;
    text-align: center;
}

.row-3 {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    font-family: 'Glacial Indifference', 'Helvetica Neue', Helvetica, Arial, sans-serif; 

}

/*
COLOR FONDO - #fffaf0
*/
/*.container {
  max-width: 1200px;    
  margin: 0 auto;       
  padding: 20px;        
  box-sizing: border-box;
}

.full-width-container {
  width: 100vw;         
  max-width: 100vw;     
  margin: 0;            
  padding: 0;           
  box-sizing: border-box;
}
*/

.image-text-container {
  position: relative;
  width: 100%;
  height: 350px;       
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-weight: bold;
  text-align: center;
  padding: 25px 40px;
  width: 80%;       /* ancho fijo al 80% del contenedor */
  min-width: 300px; /* ancho mínimo para que no quede demasiado pequeño */
  font-size: 1.25rem;
  box-sizing: border-box;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.696);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-shadow: none;
  font-family: 'Glacial Indifference', 'Helvetica Neue', Helvetica, Arial, sans-serif; 

}

/*
*/
/*LA FILA 4*/
.row-4 {
  display: flex;
  align-items: center; /* centra el texto verticalmente con la imagen */
  gap: 20px;
  flex-wrap: wrap; /* por si se hace más estrecho */
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.image-placeholder {
  flex: 0 0 40%; /* ancho fijo para la imagen */
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 30px;
  margin-left: 30px;
}

.final-text {
  flex: 1;
  margin-right: 30px;
  margin-left: 40px;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'Glacial Indifference', 'Helvetica Neue', Helvetica, Arial, sans-serif; 

}

.text-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff8dc, #fff59d); /* amarillo claro degradado */
    border-radius: 15px; /* esquinas suavemente redondeadas */
    text-align: center;
    box-sizing: border-box;
    width: 300px;   /* más ancho */
    height: 180px;  /* menos alto */
    white-space: normal;
    color: #222; /* texto oscuro para buen contraste */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Glacial Indifference', 'Helvetica Neue', Helvetica, Arial, sans-serif; 

}

/*
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham.woff2') format('woff2'),
       url('fonts/Gotham.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}*/

.text-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); 
}



@media (max-width: 768px) {
    .row-4 {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }

    .image-placeholder {
        order: -1 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important; /* Eliminado padding lateral */
    }

    .image-placeholder img {
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        width: 100% !important; /* Aseguramos ancho completo */
        height: auto !important;
        max-width: 100vw !important; /* Limite máximo del viewport */
        object-fit: cover; /* Evita distorsión */
    }

    .final-text {
        order: 2 !important;
        width: 100% !important;
        padding: 0 10px !important; /* Reducido padding lateral */
        margin: 0 !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    #preview-image-2 {
    max-width: 95vw !important; /* Limita al 95% del ancho de pantalla */
    height: auto !important;
    border-radius: 12px;
    display: block;
    margin: 0 auto !important; /* Centra la imagen */
}

}

/* Resto del CSS sin cambios */
@media (max-width: 480px) {
    .row-3 .text-box {
        font-size: 0.9rem !important;
        padding: 15px !important;
        min-height: 100px;
    }

    .overlay-text {
        font-size: 0.95rem !important;
        padding: 18px 12px !important;
        width: 98% !important;
    }

    .final-text {
        font-size: 0.95rem !important;
        text-align: justify;
        hyphens: auto;
    }

    .image-text-container {
        height: 300px;
    }
}