*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    font-family: sans-serif;
    background-color: #dcc3ac; 
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../imagenes/fondo.png');
    background-repeat: repeat;
    background-size: auto;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

a{
    text-decoration: none;
    color: black;
}

a:hover{
    color: white;
}

/*HEADER*/

.header-superior{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #dcc3ac;
    padding: 10px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    border-bottom: 3px solid #9b6a54;

}

  .logo {
    margin-left: 20px;
    }

  .nav { 
    display: flex; 
    justify-content: center;
    align-items: center;
    gap:60px;
    text-transform: uppercase;
    }

.icono{
    width: 30px;
    font-size: 28px;
    transition: filter 0.3s ease;
    margin: 5px;
    cursor: pointer;
    vertical-align: middle;
    color: #000;
    outline: none; /*quitar borde azul*/
}


    a:hover .icono, 
    .icono:hover{
        filter: invert(1);
    }

    /*DESPLEGABLE SERVICIOS*/
    .desplegable{
        position: relative;
        display: inline-block;
    }

    .desplegable-contenido{
        display: none;
        position: absolute;
        background-color: #dcc3ac;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        margin-top: 3px;
        
    }

    .desplegable-contenido a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }
    
    .desplegable:hover .desplegable-contenido{
        display: block;
    }

    .desplegable-contenido a:hover{
        background-color: #9b6a54;
    }


    /*La parte derecha */
  .header_derecha { 
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 20px;
    }

/* Efecto hover para icono de usuario en menú desplegable */
.usuario-menu-wrapper:hover .icono,
.usuario-menu-wrapper:focus-within .icono {
    filter: invert(1);
}

/*icono de iniciar sesion*/


.usuario-menu-wrapper {
  position: relative;
  display: inline-block;
}

.usuario-menu-wrapper::after{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 50px;
    pointer-events: auto;
}

.usuario-menu {
  display: none;
  position: absolute;
  top: 110%; /* justo debajo del icono */
  right: 0px;
  background: #dcc3ac;
  border: 1px solid #9b6a54;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 12px 20px;
  min-width: 160px;
  z-index: 100;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

.usuario-menu-wrapper:hover .usuario-menu,
.usuario-menu-wrapper:focus-within .usuario-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.usuario-menu span {
  display: block;
  margin-bottom: 8px;
  color: #9b6a54;
  font-weight: bold;
}

.usuario-menu a {
  color: #9b6a54;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 6px;
  transition: color 0.2s;
  padding: 4px 0;
  border-radius: 4px;
}

.usuario-menu a:hover {
  color: #444;
}

/*mensaje de cerrar sesion*/
.mensaje-cierre-wrapper {
    position: relative;
    display: inline-block;
}
.mensaje-exito-dropdown {
    position: absolute;
    top: 110%;
    left: -50%;
    transform: translateX(-50%);
    background: #dcc3ac;
    color: #444;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #444;
    min-width: 220px;
    z-index: 100;
    margin-top: 8px;
    white-space: pre-line;
}

/*Carrusel de imagenes*/
.container__slider {
    max-width: 1000px;
    height: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    position: relative;
    padding-top: 220px;
    margin-bottom: 100px;
}

.cards {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.card {
    width: 150px;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 0.3; /* Opacidad base */
    transform: scale(0.8);
    position: relative;
    cursor: pointer;
    margin: 0 5px;
}

.card.active {
    opacity: 1;
    transform: scale(1.3);
    width: 250px;
    z-index: 2;
    margin: 0 50px;
}

.card.prev, .card.next {
    opacity: 0.2; 
    transform: scale(0.9);
    z-index: 1;
}

.radio-buttons {
    display: none;

}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #9b6a54;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    margin: 80px -50px;
}

.nav-arrow.left {
    left: 10px;
}

.nav-arrow.right {
    right: 10px;
}

/*MAPA y FORMULARIO*/

.mapa{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    margin: 50px 0;
}

.map-container{
    margin-right: 0;
    margin-left: 40px;
}

.map-image{
    width: 650px;
    height: auto;
    border-radius: 10px;
}

.contacto-container{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
}

/*formulario*/
.form_contacto{
    display: flex;
    flex-direction: column; /*para que cada item del formulario este uno debajo de otro*/
    border-radius: 10px;
    margin-right: 20px;
    margin-top: 10px;
    width: 280px;;
}

.form_contacto h2{
    margin-bottom: 20px;
    align-self: flex-start;
}

.input-contacto{
    margin-bottom: 15px;
    padding: 10px;
    border: 3px solid #9b6a54;
    background-color: #dcc3ac;
    opacity: 0.5;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.input-contacto:focus{
   outline: none;
   background-color: #fcebdd;
   opacity: 0.8;
   color: #333;
}
.input-contacto.has-text{
    outline: none;
   background-color: #fcebdd;
   opacity: 0.8;
   color: #333;
 }

.form_contacto button{
    padding: 10px;
    background-color: #9b6a54;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 18px;
    max-width: 290px;
    
}

.form_contacto button:hover{
    background-color: #dcc3ac;
    border: 3px solid #9b6a54;
    color: #9b6a54;
}

.whatsapp-contacto{
    display: flex;
    align-items: center;
}

.texto-whattsapp{
    margin-top: 20px;
    font-size: 20px;
}

.whatsapp-contacto img{
    width: 30px;
    height: auto;
    margin-top: 20px;
    margin-left: 10px;
}

.telefono{
    background-color: #dcc3acc2;
    padding: 15px;
    border-radius: 8px;
    display: block;
    border: 3px solid #9b6a54;
    margin-top: 140px;
    margin-right: 80px;
}

.telefono h3{
    margin-bottom: 10px;
    display: block;
    text-decoration: underline;
}

.telefono a{
    color: #9b6a54;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    line-height: 30px;
    font-weight: bold;
}

.telefono a img{
    margin-right: 8px;
    width: 20px;
    height: auto;
}

.telefono a:hover{
    text-decoration: underline;
}

/*cambiar el color de la x de cerrar la ventana emergente de mensaje enviado correctamente del formulario*/
/*como hemos usado la libreria SweetAlert, la x de cerrar tiene por defecto la clase .swal2-close: */
.swal2-close{
    color: #9b6a54 !important;
}

/*HORARIO*/
.tabla-horario-wrapper{
  position: relative;
  display: inline-block;
  max-width: 800px;
  margin: 0 auto;
  width: 90vw;
}

.horario {
    text-align: center; 
    margin-bottom:150px;
    position: relative;
    margin-top: -10px;
}

.horario h2{
    margin-bottom: 30px;
    text-decoration: underline;
    color: #9b6a54;
}

.tabla-horario {
    width: 100%; 
    table-layout: fixed;
    border-collapse: separate; 
    margin: 0 auto; /* Centra la tabla */
    border-spacing: 0;
    border: 3px solid #9b6a54;
    border-radius: 10px;
}

.tabla-horario th, .tabla-horario td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #9b6a54; 
    padding: 10px; 
    text-align: center; 
}

.tabla-horario th {
    background-color: #9b6a54; 
    color: white; 
}

.tabla-horario tr:nth-child(even) {
    background-color: #f2f2f2e9;
}

.maquina-derecha{
    position: absolute;
    right: -50px;
    bottom: -100px;
    width: 120px;
    height: auto;
    z-index: 100000;
    pointer-events: none;
}

/*SOBRE MI*/
.sobre_mi {
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    margin: 70px;
    margin-bottom: 150px;
}


.foto_sobre_mi {
    width: 300px; 
    height: auto; 
    border-radius: 15px; 
    margin-right: 40px; 
}
.texto_sobre_mi {
    max-width: 600px; 
    line-height: 1.6; 
    text-align: justify; 
}

/*SERVICIOS*/
.servicios {
    text-align: justify;
    margin: 0px 80px;
}

.servicios h2{
    text-decoration: underline;
}

/*ARREGLOS*/
.arreglos {
    margin-bottom: 120px;
}
.arreglos-container {
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    max-width: 1200px;
    margin: 0 auto; /*centrar el contenedor*/
}

.tabla-precios-wrapper{
    position: relative;
    width: 90vw;
    max-width: 600px;
    margin: 0 auto;
}

.tabla-precios {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 5px solid #9b6a54;
    border-radius: 18px;
    background: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    table-layout: fixed;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 50px;
}

.tabla-precios th,
.tabla-precios td {
    border: 1px solid #9b6a54;
    padding: 10px;
    text-align: center;
    max-width: 120px;
    word-break: break-word;
}
.tabla-precios th {
    background-color: #9b6a54;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.tabla-precios tr:nth-child(even) {
    background-color: #f2f2f2b9;
}

.tabla-precios tr:nth-child(odd) {
    background-color: #dcc3acdb;
}

.imagen-izquierda {
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 110px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    transform: rotate(-10deg);
}

.imagen-derecha{
    position: absolute;
    right: -40px;
    top: -10px;
    width: 90px;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

/*TRANSFORMACIONES ANTES-DESPUES*/
.transformaciones{
    text-align: justify;
    margin-bottom: 100px;
}

.transformaciones h3{
    text-decoration: underline;
    margin-bottom: 10px;
}

.transformaciones h4{
    text-align: center;
}

.transformaciones-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch; /*alinea los elementos a la misma altura*/
    flex-wrap: wrap; 
    padding: 20px;
    margin-top: 30px;
}

.transformacion-ejemplo {
    width: 30%; 
    background-color: rgba(255, 255, 255, 0.321);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    box-sizing: border-box; 
    cursor: pointer; 
    display: flex;
    flex-direction: column;
}

.transformacion-ejemplo:hover {
    width: 35%; 
}

.transformaciones-antes-despues{
    display: flex;
    justify-content: space-around; /*dar espacio entre imagenes*/
    align-items: flex-start; /*alinea las imagenes arriba*/
    margin-bottom: 20px; /*espacio entre imagen y p*/
}

.transformacion-individual{
    width: 45%;
    text-align: center;
}

.transformacion-individual img{
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.descripcion-transformacion{
    margin-top: auto;
    font-style: italic;
    width: 100%;
    text-align: justify;
}

.texto-transformaciones{
    color: #444;
    text-align: center;
    font-size: 1.2rem;
    transition: box-shadow 0.3s;
}

.texto-transformaciones a {
    color: #444 !important; 
    text-decoration: underline; 
    font-weight: bold;
}

.texto-transformaciones a:hover {
    color: #000 !important; /* Color al pasar el ratón, opcional */
}
/*animacion pulso*/
@keyframes pulse-doble {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.07);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
.texto-transformaciones.pulse {
    animation: pulse-doble 1.2s ease-in-out;
}

/*TIENDA*/
.tienda h2,
  .tienda h3,
  .confeccion h2,
  .confeccion h3,
  .confeccion h4 {
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

.tienda p,
  .confeccion p {
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

.tienda{
    margin-bottom: 150px;
}
.tienda h2{
    margin: 20px 0px;
}

.tienda h3{
    margin-bottom: 10px;
    text-decoration: underline;
}

.tienda h4{
    margin: 40px 0px 15px 0px;
    color: #9b6a54;
}

.tienda p{
    margin-bottom: 20px;
    line-height: 25px;
}

/*contenedores productos*/
.productos-confeccionados{
    display: flex;
    clear: both; /*limpia float anteriores*/
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

/*cada producto*/
.producto{
    background-color: #f1dfd1a6;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    padding: 8px;
    text-align: center;
    width: calc(25% - 12px);
    box-sizing: border-box;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: unset;
    max-height: unset;
    overflow: hidden;
}

.producto-vertical{ /*reducir el ancho del contenedor de las imagenes verticales*/
    width: 250px;
    max-width: 400px;
    height: 400px;
    max-height: 400px;
    align-items: center;
    overflow: hidden;
}

.producto-vertical .imagen-contenedor-conf {
    max-height: 400px; 
}

.producto:hover{
    transform: scale(1.03);
}

.producto .contenedor-vertical{
    width: 200px !important;
    max-width: 200px;
}

.imagen-contenedor{
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.imagen-contenedor-conf{
    position: relative;
    margin: 10px;
    width: 280px;
    height: 220px;
    max-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.imagen-contenedor-conf.contenedor-vertical {
    width: 150px;
    height: 280px;
    padding: 10px;
    margin: 0 auto;
}

.imagen-producto{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    object-position: center center;
    cursor: pointer;
}

.img-ajustada{
    object-fit: contain !important;
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 200px;
    margin: 0 auto;
    display: block;
}

.img-vertical{
    object-fit: contain;
    width: auto;
    max-width: 100%;
    height: 250px;
    display: block;
    margin: 0 auto;
}

.producto-descripcion{
    font-weight: bold;
    color: #9b6a54;
}

.imagen-contenedor-conf.contenedor-vertical + .producto-descripcion{
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    text-align: center;
}

.productos-titulo {
    margin-bottom: 100px; /*espacio desde que acaba productos confeccionados y empieza tienda*/
}

/*imagenes de tienda*/
.productos-tienda {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin: 10px 0 0 0;
}
.productos-tienda .imagen-contenedor-conf {
    width: 250px;          
    height: 180px;         
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;    /*para que no sobresalga la imagen del contenedor*/
    margin: 0 auto;
}
.productos-tienda .producto {
    width: calc(25% - 12px);
    box-sizing: border-box;
}
.productos-tienda .imagen-producto {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;  /* Asegura que la imagen se vea entera */
    display: block;
    margin: 0 auto;
}

/*mensaje de iniciar sesion para marcar favorito*/
#loginModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  border: 2px solid #9b6a54;
}

#loginModal .modal-content {
  background: #fff;
  padding: 30px 24px 24px 24px;
  border-radius: 12px;
  max-width: 350px;
  width: 90%;
  text-align: center;
  position: relative;
  margin: auto;
}

#loginModal p {
  font-size: 1.1rem;
  margin-bottom: 28px; 
  color: #9b6a54;
}

#loginModal .modal-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

#loginModal button {
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #9b6a54;
  color: #9b6a54;
}
#loginModal button:hover {
  scale: 1.1;
}

#loginModal .close {
  position: absolute;
  top: 10px; right: 16px;
  font-size: 24px;
  color: #9b6a54;
  cursor: pointer;
  transition: color 0.2s;
}
#loginModal .close:hover {
  color: #e63946;
}

/*icono corazon - boton de favorito en cada producto*/
.favorito{
    position: absolute;
    top: 10px;
    right:0px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.favorito i {
    transition: color 0.2s;
}

.favorito i.far{
    color: #9b6a54;
}

.favorito i.fas{
    color: #e63946;
}

/*icono corazon header*/
#icono-favoritos-header i{
    color: #000;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
    filter: none !important; /*sino por defeco coge el filtro invery(1) y cuando el corazon esta rojo, al pasar por encima pasa por azul*/
}

/*cuando haya favoritos marcados cambie de color*/
#icono-favoritos-header.favorito-activo i {
    color: #e63946;
}
/*al pasar por encima cuando esta rojo con favoritos guardados*/
#icono-favoritos-header.favorito-activo i:hover{
    color: #a4161a;
    filter: none !important;
}

/*cuando no hay favoritos, no cambia a blanco*/
#icono-favoritos-header:not(.favorito-activo) i:hover {
    color: #fff;
}

/*icono de header del corazon - que haga un movimiento de pulse cuando recibe un favorito*/
#icono-favoritos-header.favorito-pulse i{
    animation: pulse 0.7s;
}

@keyframes pulse{
    0% { transform: scale(1);}
    50% { transform: scale(1.3);}
    100% { transform: scale(1);}
}

/*CONFECCION = titulo + parrafo + galeria + modal*/

.confeccion{
    text-align: justify;
    font-size: 18px;
    margin-bottom: 100px;
}

.confeccion p{
    margin:10px 0;
}

.confeccion h2{
    margin: 20px 0px;

}

.confeccion h4{
    margin-top: 20px;
    text-decoration: underline;
}
.galeria{
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.imagen-galeria{
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /*efecto de transision*/
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
}

.imagen-contenedor{
    background-color: rgba(255, 255, 255, 0.321);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px;
    transition: box-shadow 0.3s ease;
    width: 280px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.imagen-contenedor:hover{
    box-shadow: 0 4px 12px #9b6b54b4;
    transform: scale(1.1);
}

/*Modal = cuando pulso en una imagen, se haga grande en pantalla completa*/
.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content{
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.close{
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em; 
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 1001;
}

.modal-arrow:hover {
    color: #f0f0f0; 
}

.modal-contenido{
    position: relative;
    z-index: 1002; 
    max-width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagenes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    margin-bottom: 15px;
}

.modal-imagen {
    max-width: 65%; 
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.modal-descripcion {
    color: white;
    text-align: center;
    padding: 15px;
}

/*clase creada para ocultar el header cuando abrimos la modal*/
.hidden{
    display: none;
}

.modal-arrow.prev {
    left: 300px; /* Flecha izquierda pegada al borde izquierdo */
}

.modal-arrow.next {
    right: 300px; /* Flecha derecha pegada al borde derecho */
}

/*modal transformaciones - para que se vea contenedor completo*/
.transformaciones-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.transformaciones-modal-content {
    max-width: 40vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 30px;
}

.transformaciones-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
}

.transformaciones-imagenes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.transformaciones-modal-imagen {
    max-width: 50%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.transformaciones-modal-descripcion {
    color: white;
    text-align: justify;
    padding: 20px;
    font-size: 1.1em;
}

/*Calendario para pedir cita*/
.cita-section{
    display: flex;
    justify-content: center;     /* Centra el contenido dentro del contenedor */
    align-items: center;
    max-width: 900px;            /* Ajusta según tu preferencia */
    width: 100%;
    margin: 60px auto 40px auto; /* Centra la sección en la página */
    padding: 20px 0;
    gap: 60px;
    box-sizing: border-box;
}

.cita-info,
.cita-calendario {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.cita-info{
    align-items: flex-end;
    text-align: justify;
    padding-right: 0;
}

.cita-info h3{
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: #9b6a54;
}

.cita-info p{
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
}

.cita-calendario{
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
}

.cita-mensaje-centrado {
    width: 320px;              /* Igual que el calendario */
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    box-sizing: border-box;
}

#calendario{
    width: 320px;
    max-width: 100%;
}

.cita-mensaje-centrado p,
.cita-mensaje-centrado div,
.cita-mensaje-centrado label,
.cita-mensaje-centrado input,
.cita-mensaje-centrado button {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

#cita-resumen {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}


#cita-resumen select{
    margin-top: 12px;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 5px;
    background-color: #dcc3ac;
    border: 2px solid #444;
    color: #444;
    font-weight: bold;
}

#cita-resumen select:focus{
    border: 2px solid #444 !important;
    outline: none;
    box-shadow: none;
    color: #444;
}

#cita-resumen button{
    margin-top: 12px;
    font-size: 1rem;
    padding: 8px;
    border-radius: 5px;
    background-color: #dcc3ac;
    border: 2px solid #444;
    color: #444;
    font-weight: bold;
    cursor: pointer;
}

/*estilos para poner el telefono*/

label[for="telefono-cita"] {
    margin-bottom: 4px; /* reduce el espacio debajo del label */
    display: block; 
    line-height: 1.2;
}

.iti, .intl-tel-input {
    width: 100% !important;
    min-width: 250px;
    display: block;
    position: relative;
}

#telefono-cita{
    padding: 10px 12px;
    padding-left: 80px !important;
    border-radius: 8px;
    border: 2px solid #444;
    background-color: #dcc3ac;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    display: block;
}

#telefono-cita:focus {
    outline: none;
}

.iti__flag-container {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    height: auto;
    z-index: 2;
}

/*mensaje de telefono erroneo*/
.mi-popup {
  border-radius: 12px;
  font-family: 'Arial, sans-serif';
  border: 3px solid #9b6a54;
}

.mi-titulo {
  font-weight: bold;
  font-size: 1.5em;
  color: #9b6a54;
}

.mi-contenido {
  font-size: 1.1em;
  color: #444;
}

.mi-boton-confirmar {
  background-color: #9b6a54 !important;
  color: #f0f0f0 !important;
  font-weight: bold;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mi-boton-confirmar:hover {
  scale: 1.2;
}

/*FOOTER*/
.footer{
    background-color: #dcc3ac;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 3px solid #9b6a54;
    box-sizing: border-box;
    align-items: center; /* vertical*/
}

.footer-social, .footer-texto, .footer-logo{
    flex: 1;
    text-align: center;
}

    .footer-social{
        display: flex;
        align-items: flex-start;
        margin-left: 20px;
        gap: 20px; /*espacio entre logos*/
    }

    .footer-texto{
        flex: 3;
    }

    .footer-logo{
        display: flex;
        justify-content: flex-end; 
        margin-right: 20px;
   }
   
   

/* MÓVILES (hasta 767px) */
@media (max-width: 767px) {
    html, body {
    width: 100%;
    min-width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Header Mobile */
  .header-superior {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    position: fixed;
    top: 0;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    z-index: 10000;
    background: #dcc3ac;
  }

   .logo {
    margin-left: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: center;
    order: 1;
  }

  .logo img{
    width: 140px;
  }

  .menu-hamburguesa {
    order: 3;
    display: block;
    position: static;
    font-size: 2.5rem;
    z-index: 2000;
    background: none;
    border: none;
    color: #000000;
    margin-left: 10px;
    margin-right: 0;
    margin-bottom: 5px;
    transition: color 0.2s, transform 0.2s;
  }

  .menu-hamburguesa:hover,
  .menu-hamburguesa:focus {
    color: #9b6a54;
    transform: scale(1.2);
  }

  .icono {
    transition: color 0.2s, filter 0.2s, transform 0.2s;
  }
  .icono:hover,
  a:hover .icono {
    color: #9b6a54;
    filter: brightness(1.2) drop-shadow(0 2px 4px #9b6a54aa);
    transform: scale(1.15) rotate(-5deg);
  }

  .header_derecha {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    z-index: 10000;
    margin-left: 80px;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #dcc3ac;
    flex-direction: column;
    display: none;
    z-index: 1500;
    border-bottom: 2px solid #9b6a54;
  }
  
  .nav.active { 
    display: flex; 
}
  
  .desplegable-contenido {
    position: static;
    box-shadow: none;
  }

   main {
    margin-top: 60px; 
  }

  /*carrusel de imagenes*/
  .container__slider {
    width: 100vw;
    max-width: 100vw;
    height: 450px;
    margin: 60px 0 30px 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cards {
    width: 100vw;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .card {
    width: 85vw !important; /*una unica imagen*/
    max-width: 230px;
    height: 320px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    margin: 0;
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 2;
    object-fit: cover;
  }

  .card:not(.active) {
    display: none !important;
  }
  
  .radio-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .radio-buttons button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #9b6a54;
    opacity: 0.4;
    transition: opacity 0.2s;
    cursor: pointer;
    padding: 0;
  }
  .radio-buttons button.active {
    opacity: 1;
    background: #9b6a54;
    box-shadow: 0 0 0 2px #dcc3ac;
  }

  .nav-arrow {
    display: none;
  }

  /*ubicacion y contacto*/
    .mapa{
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .map-container {
    width: 100%;           
    max-width: 400px;       
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
  }
  .map-image {
    width: 90%;
    height: auto;
    display: block;
    border-radius: 8px;     
  }
  
  .contacto-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espacio entre formulario y teléfonos */
    width: 80%;
  }
  
  .form_contacto {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
  }
  
  .telefono {
    display: inline-block;
    padding: 15px 18px;
    border-radius: 10px;
    margin: 15px auto 20px auto;
    box-sizing: border-box;
    min-width: 180px;
    max-width: 95vw;
    width: auto;
  }
  
  /*tamaño horario*/
  .horario h2 {
  margin-bottom: 10px; 
}

   .tabla-horario-wrapper{
      max-width: 85vw;
      padding: 0 2vw;
  }
  
  .tabla-horario{
      font-size: 0.78rem;
  }
  
  .tabla-horario th,
  .tabla-horario td {
    padding: 4px 2px;
    word-break: break-word;
    max-width: 80px;
  }
  
  .horario,
  .tabla-horario-wrapper {
    margin-bottom: 10px; 
  }
  
  .maquina-derecha {
    width: 80px;
    right: -20px; 
    bottom: -70px; 
  }
  

  /*sobre mi*/
  .sobre_mi {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px 0 0 0;
    overflow: visible;
  }
  .texto_sobre_mi {
    order: 1;
    width: 100%;
    padding: 0 20px;
    margin: 0;
    box-sizing: border-box;
    text-align: justify;
    font-size: 1rem;
  }
  .foto_sobre_mi {
    order: 2;
    width: 60vw;
    max-width: 300px;
    min-width: 100px;
    height: auto;
    margin: 20px auto 20px auto;
    display: block;
    object-fit: cover;
  }
  

  /*SERVICIOS*/
    .servicios, .arreglos, .arreglos-container{
    width: 100%;
    max-width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  
  .arreglos h2 {
    margin-top: 40px; 
    margin-bottom: -30px;
  }
  
  .imagen-izquierda {
    width: 80px;
    left: -40px;
    bottom: -30px;
  }
  
  .imagen-derecha {
    width: 70px;
    right: -30px;
    top: 0;
  }
  
  /*transformaciones*/
  .transformaciones {
    width: 100%;
    max-width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .transformaciones h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 0;
    text-align: left;
    font-weight: 700;
  }

  .transformaciones > p {
    max-width: 90%;
    min-width: 350px;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    padding-right: 30px;
  }

  .transformaciones-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100vw;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .transformacion-ejemplo {
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
    background: #fff9f6;
    border-radius: 10px;
    padding: 10px 6px 16px 6px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .transformaciones-antes-despues {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .transformacion-individual {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .transformacion-individual h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .transformacion-individual img {
    width: 90%;
    max-width: 140px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  }

  .descripcion-transformacion {
    font-size: 0.97rem;
    text-align: justify;
    margin: 8px 0 0 0;
    padding: 0 6px;
  }

  .texto-transformaciones {
    max-width: 90%;
    min-width: 350px;
    text-align: center;
    margin: 24px auto 0 auto;
    font-weight: bold;
    padding-right: 30px;
  }

  .transformacion-ejemplo:hover,
  .transformacion-ejemplo:active,
  .transformacion-ejemplo:focus {
    width: 100% !important;
    transform: none !important;
  }

  .transformacion-ejemplo {
    transition: none !important;
    cursor: default !important;
  }

  /*tienda*/
  /*confeccionado*/
  .productos-confeccionados, 
  .productos-tienda {
    display: flex;
    flex-direction: column;
    gap: 16px;  
    align-items: center;
  }

  .productos-confeccionados .producto,
  .productos-tienda .producto, 
  .productos-confeccionados .producto-vertical {
    width: 90vw;  /* 1 por fila */
    max-width: 280px;
    margin: 0 auto 16px auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
  }

  .productos-confeccionados .imagen-contenedor-conf, 
  .productos-confeccionados .imagen-contenedor-conf.contenedor-vertical,
  .productos-tienda .imagen-contenedor-conf {
    width: 100%;
    height: auto; 
    max-width: 280px;
    max-height: 220px;
    margin: 0 auto 8px auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .productos-confeccionados .imagen-producto,
  .productos-confeccionados .img-vertical,
  .productos-tienda .imagen-producto {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }

  .productos-confeccionados .img-ajustada{
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    margin-top: 10px;
  }


  .productos-confeccionados .producto-descripcion,
  .productos-tienda .producto-descripcion {
    font-size: 0.95rem;
    margin-bottom: 6px;
    padding: 0 4px;
    word-break: break-word;
    text-align: center;
  }

/*reservar cita*/
.flatpickr-calendar {
    width: 100% !important; /* Fuerza el ancho completo */
    transform: scale(0.95); /* Reduce ligeramente el tamaño si es necesario */
    left: 50% !important;
    transform: translateX(-50%); /* Centra horizontalmente */
}

.cita-section {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 12px;
    max-width: 100vw;
  }

  .cita-info {
    margin-bottom: 0;
    text-align: justify;
  }

  .cita-calendario {
    margin-left: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  #calendario {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    overflow: visible;
  }

  #cita-resumen {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding-left: 0;
  }
  
  .cita-confirmacion{
      margin: 0;
      padding: 0;
      text-align: left;
  }
  
  #calendario #cita-resumen {
    margin-top: 24px !important;
}

  .footer {
    width: 100%;
    background: #dcc3ac;
    border-top: 3px solid #9b6a54;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 10px 0;
    gap: 12px;
    box-sizing: border-box;
  }

  .footer-logo {
    display: none !important; /* Oculta el logo en móvil */
  }

  .footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 6px;
  }

  .footer-social .icono {
    width: 32px;
    height: 32px;
    transition: filter 0.2s;
  }
  .footer-social .icono:hover {
    filter: brightness(1.2) drop-shadow(0 2px 4px #9b6a54aa);
  }

  .footer-texto {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin: 0;
    padding: 0 8px;
    line-height: 1.4;
  }

  .footer-texto p {
    margin: 2px 0;
  }
}

@media (min-width: 768px) {
  .menu-hamburguesa {
    display: none !important; /* ocultar en tablet y escritorio */
  }
}

/*tablets*/
@media (min-width: 768px) and (max-width: 1200px) {
  html, body {
    width: 100%;
    min-width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Elimina scroll horizontal */
    box-sizing: border-box;
  }

  .header-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px; 
    gap: 8px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
  }

  .logo {
    margin-left: 0;
    padding-left: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .logo img {
    width: 190px; 
    max-width: 190px;
    height: auto;
    display: block;
  }

  .nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px; /*tamaño entre enlaces*/
    flex: 1 1 auto;
    margin-left: 20px; /*espacio entre logo y enlaces*/
    }

  .nav a {
    font-size: 0.97rem; /* Letras más pequeñas */
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px;
    white-space: nowrap;
  }

  .icono {
    width: 22px;
    font-size: 20px;
    margin: 2px;
    /* Si quieres quitar los iconos, descomenta la siguiente línea:
    display: none;
    */
  }

  /* Si prefieres mostrar solo texto en tablet, usa esto:
  .nav a .icono {
    display: none;
  }
  */

  .header_derecha {
    gap: 10px;
    padding-right: 15px;
  }
  
  .header_derecha .icono,
  .header_derecha i.icono,
  .header_derecha .fa-circle-user,
  .header_derecha .fa-heart {
    font-size: 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    margin: 0 2px;
  }

  /* Ajustes para evitar scroll horizontal por menús desplegables */
  .desplegable-contenido {
    min-width: 130px;
    font-size: 0.95rem;
  }
  
  /*carrusel de imagenes*/
  /*reducir el tamaño*/
  .container__slider {
    max-width: 98vw;
    height: 500px;
    margin: 130px auto 40px auto;
    padding: 10px 0 0 0;
    position: relative;
  }
  .cards {
    height: 400px;
    width: 99%;
    display: flex;
  }
  
  .card {
    width: 180px;
    max-width: 240px;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 0.3;
    transform: scale(0.8);
    margin: 0 10px;
  }
  
  .card.active {
    opacity: 1;
    transform: scale(1.18);
    width: 340px;
    z-index: 2;
    margin: 0 30px;
  }
  .card.prev, .card.next {
    opacity: 0.2;
    transform: scale(0.93);
    z-index: 1;
  }
  
  .nav-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    font-size: 2.1em;
    color: #9b6a54;
    padding: 8px;
    user-select: none;
    /* Elimina el margin que las saca fuera */
    margin: 0;
    z-index: 10;
  }
  
  .nav-arrow.left {
  left: calc(10px + 90px - 17px);  /* 90px es la mitad de 180px */
}
.nav-arrow.right {
  right: calc(10px + 90px - 17px);
}

  .radio-buttons {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 70px;
  }
  
  .radio-buttons button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #9b6a54;
    opacity: 0.4;
    transition: opacity 0.2s;
    cursor: pointer;
    padding: 0;
  }
  .radio-buttons button.active {
    opacity: 1;
    background: #9b6a54;
    box-shadow: 0 0 0 2px #dcc3ac;
  }
  
  /*MAPA Y FORMULARIO*/
  .mapa {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    margin: 50px auto;
    max-width: 960px;
    box-sizing: border-box;
  }

  
  .map-container {
    width: 100%;
    margin: 0 0 30px 0;
    display: flex;
    justify-content: center;
  }

  .map-image {
    width: 100%;
    max-width: 650px; 
    height: auto;
    border-radius: 10px;
  }

  /* Contenedor de formulario y teléfonos en fila */
  .contacto-container {
    display: flex;
    flex-direction: row;
    gap: 60px;
    width: 100%;
    max-width: 700px;
  }
  
  /* Ajustes para el formulario */
  .form_contacto {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    margin-left: 80px;
  }

  /* Ajustes para el bloque de teléfonos */
  .telefono {
    flex: 0 0 auto; /*no crece ni se encoge*/
    width: auto;
    min-width: 180px;
    max-width: 260px;
    margin-top: 130px;
    padding: 15px;
    border-radius: 8px;
    border: 3px solid #9b6a54;
    box-sizing: border-box;
  }
 
 /*imagenes de tienda*/
 .productos-confeccionados,
  .productos-tienda {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 20px;
    justify-items: center;
    align-items: start;
    width: 100%;
  }

  .producto,
  .productos-tienda .producto {
    width: 100%; /* El grid controla el ancho, así que deja que se adapte */
    max-width: 270px; /* Ajusta para que la imagen nunca se corte */
    min-width: 0;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .imagen-contenedor-conf {
    width: 100%;
    max-width: 270px;
    height: 220px;
    max-height: 220px;
    margin: 0 auto 8px auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .imagen-producto {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    object-position: center center;
    cursor: pointer;
  }
  
  /*confecciones*/
  .galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 imágenes por fila */
    gap: 28px 20px; /* espacio entre imágenes, ajusta a tu gusto */
    justify-items: center;
    align-items: start;
    padding: 20px 0;
  }
  .imagen-contenedor {
    width: 100%;         /* El grid controla el ancho */
    max-width: 280px;    /* No más ancho que esto */
    height: 300px;
    margin: 0;           /* El grid gestiona el espacio */
  }
  
  /*modal*/
  .modal-arrow.prev {
    left: 100px;   
  }
  .modal-arrow.next {
    right: 100px;
  }
}

/*tablet en vertical*/
@media (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
    /*header con menu menu hamburguesa*/
    .menu-hamburguesa {
    display: block !important;
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 2.5rem;
    z-index: 2000;
    background: none;
    border: none;
    color: #000;
  }

  .nav {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 240px;
    background: #dcc3ac;
    flex-direction: column;
    z-index: 1500;
    border-radius: 10px 0 10px 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    border: 2px solid #9b6a54;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav.active {
    display: flex !important;
  }
  
  .nav a {
    padding: 12px 24px;
    font-size: 1.05em;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid #e8d1b6;
  }

  .nav > *:last-child > a {
  border-bottom: none;
}

  .desplegable-contenido {
    position: static;
      box-shadow: none;
      background: #dcc3ac;
      margin-left: 0; /* Quita el margen izquierdo */
      min-width: 0;
      width: 100%;    /* Haz que ocupe todo el ancho del menú */
      box-sizing: border-box;
      padding: 0;
  }
  
  .desplegable-contenido a {
    border-bottom: none !important;
  }
  .desplegable-contenido a::after {
    display: none !important;
  }

  .header-superior {
    padding: 10px 0px 0px 30px;
    gap: 0;
  }

  .logo img {
    width: 180px;
    max-width: 180px;
  }

  .header_derecha {
    gap: 20px;
    padding-right: 80px;
  }
  
  /*carrusel = quitamos las flechas*/
  .nav-arrow {
    display: none !important;
  }
  .sobre_mi {
    margin: 40px 30px 100px 10px; 
    gap: 18px; /* si quieres separar un poco, usa gap */
  }
  .foto_sobre_mi {
    width: 230px;      /* imagen mucho más pequeña */
    margin-right: 10px;
    border-radius: 12px;
    margin-top: 100px;
    margin-left: 20px;
  }
  .texto_sobre_mi {
    max-width: none;   /* permite que el texto use más espacio */
    flex: 1;
    font-size: 1.06em; /* opcional: mejora la legibilidad */
  }
  
  .horario{
      width: 80%;
      margin: 0 auto;
      box-sizing: border-box;
  }
  
  .tabla-horario-wrapper{
      width: 100%;
    box-sizing: border-box;
  }
  .tabla-horario {
    width: 100%;
    box-sizing: border-box;
    table-layout: auto; /* O 'fixed' si prefieres */
  }
  
  /*transformaciones*/
  .transformaciones > p {
    margin-bottom: 32px; /* o el valor que prefieras */
  }
  
  .transformaciones-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 100vw;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .transformacion-ejemplo {
    width: 90%;
    max-width: 97vw;
    margin: 0 auto;
    border-radius: 10px;
    padding: 14px 10px 20px 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: none !important;
    cursor: default !important;
  }

  .transformaciones-antes-despues {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .transformacion-individual {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .transformacion-individual img {
    width: 92%;
    max-width: 160px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  }

  .descripcion-transformacion {
    font-size: 1.02rem;
    text-align: justify;
    margin: 10px 0 0 0;
    padding: 0 8px;
  }
  .transformacion-ejemplo:hover,
  .transformacion-ejemplo:active,
  .transformacion-ejemplo:focus {
    width: 100% !important;
    transform: none !important;
    transition: none !important;
    cursor: default !important;
  }
  
  .modal {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Asegúrate de que la modal ocupa toda la pantalla */
  }

  .modal-imagen, #img01 {
    /* Ajusta el selector según tu clase o ID real */
    max-width: 60vw;   /* Más pequeña que en escritorio */
    max-height: 60vh;
    margin: 0 70px;    /* Deja espacio lateral para las flechas */
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    object-fit: contain;
  }

  .modal-flecha,
  .modal-arrow, /* O el nombre de clase que uses para las flechas */
  .modal-arrow.prev,
  .modal-arrow.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2em;
    color: #9b6a54;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    padding: 10px 14px;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    border: none;
    transition: background 0.2s;
  }

  .modal-flecha.izquierda,
  .modal-arrow.prev {
    left: 5vw; /* O ajusta según el espacio lateral */
  }

  .modal-flecha.derecha,
  .modal-arrow.next {
    right: 5vw;
  }
  
  .footer-texto {
    font-size: 0.87em;   
    margin: 10px auto;
  }
  
  .footer-logo img {
    width: 140px;      
    height: auto;
  }
  
}