*{
    
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}
body {
    overflow-x: hidden;

    width: 100%;  
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: start;
    color: black;
    
    
}
h1, h2, h3 {
    color: #081c4d;
    text-shadow: 1px 2px #e8ebdb;
}
h2 {
    text-transform: uppercase;
    width: 100%;
    text-align: start;
    margin-left: 10px;
}
p {
    font-size: 23px;
    text-shadow: 
    0.5px 0 #98bdb5,   /* Derecha */
    -0.5px 0 #98bdb5,  /* Izquierda */
    0 0.5px #98bdb5,   /* Abajo */
    0 -0.5px #98bdb5;  /* Arriba */
    width: 100%;
    text-align: start;
    margin-left: 15px;
}
ul{
    width: 100%;
    text-align: start;
    margin-left: 15px;
   
}
li {
    font-size: 23px;
    margin: 5px;
    text-shadow: 
    0.5px 0 #98bdb5,   /* Derecha */
    -0.5px 0 #98bdb5,  /* Izquierda */
    0 0.5px #98bdb5,   /* Abajo */
    0 -0.5px #98bdb5;  /* Arriba */
   
}
header {
 width: 100%;
 height: auto;
}

.menu {
    width: 100%;
    position:fixed;
    justify-content: center;
  
    top: 0;
    left: 0;
    box-shadow: 1px 2px 4px  #e8ebdb;
    z-index: +2;
}
.menu ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    direction: none;
    justify-content: end;
    margin-right: 15px;
}
.menu li {
    margin: 5px;
    
}
.menu li a  {
    padding: 8px 12px;
    text-decoration: none;
    margin: 5px;
    text-transform: uppercase;
    color: #081c4d;
    transition: 0.3s ease;
    border-radius: 7px;
    background-color: #98bdb5;
    font-size: 17px;
}
.menu li a:hover {
    transform: scale(1.08);
    background-color: #e8ebdb;
}
.iconcell {
 position:fixed;
 top: 2%;
 right: 5%;
 width: 60px;
 height: auto;
 padding: 15px;
 background-color: #98bdb5;
 border-radius: 50%;
 display: none;
 justify-content: center;
 align-items: center;
}
.iconcell img {
    width: 100%;
    height: auto;
}
main {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}
.portada {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.fondo {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    object-fit: cover;
}
.fondo img {
    width: 100%;
    height: 100%;
    
}
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 600px;
    height: auto;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.logo img {
    width: 90%;
    height: auto;
}
.logo h1 {
    font-size: 31px;
    text-align: center;
    width: 95%;
    height: auto;
}
.nosotros {
    width: 90%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    background-color: rgba(247, 246, 246, 0.409);
    padding: 10px;
}
.nosotros .quienes {
    width: 95%;
    height: auto;
    display: flex;
    flex-direction: row;

}
.nosotros .quienes .quienimg {
    width: 45%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.nosotros .quienes .quienimg img{
  width: 75%;
  height: auto;
}
.nosotros .quienes .quientext {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  
}
.nosotros .valorlist {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.catalogo {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.catalogo h2 {
    width: 100%;
    text-align: start;
    margin-left: 5%;
}
.catalogo .galeria {
    width: 95%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    justify-content: center; /* Opcional, centra la cuadrícula */
}
.catalogo .galeria .segmento {
    width: 250px;
    height: 300px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    position: relative;
    margin: 15px;
    background-color: #e8ebdb;
    border-radius: 15px;
    box-shadow: 1px 2px 3px #98bdb5;
    overflow: hidden;
    transition: 0.4s ease;
}
.catalogo .galeria .segmento:hover {
    transform: scale(1.05);
}
.segmento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.segmento a {
position: absolute;
font-weight: bold;
text-decoration: none;
color: inherit;
background-color: #98bdb5;
border-radius: 15px;
width: 90%;
padding: 5px;
text-align: center;
transition: 0.2 ease;
left: 50%;
top: 85%;
transform: translateX(-50%);
}
.segmento a:hover {
    transform: scale(1.05);
    transform: translateX(-50%);
}
html {
    scroll-behavior: smooth;
}
.contactos {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color:  rgba(247, 246, 246, 0.409);
    
}
.contactos .contactodivision {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: row;
    width: 100%;
   
}
.contactos .contactodivision .contactodirecto {
    width: 50%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
 
    border-radius: 15px;
   
}
.contactos .contactodivision .contactodirecto  .contactoinfo {
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   
   }

.contactos .contactodivision .contactodirecto  .contactoredes {
    display: flex;
    justify-content: end;
    align-items: end;
    flex-direction: column;
    padding: 15px;
    
    width: 100%;
    
}
.contactos h2 {
    width: 100%;
    text-align: start;
    margin-left: 5%;
    text-transform: uppercase;
 
    
}
.contactoredes .redes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 7px;
    width: 40%;
  
}
.redes a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 5px;
    text-decoration: none;
    color: black;
    
}
.redes a img{
    width: 60px;
    height: 60px;
}
.redes  p {
    font-size: 12px;
    
}


.contactos .contactodivision .contactodirecto   .contactoinfo {
 width: 95%;
 display: flex;
 flex-direction: column;
 justify-content: start;
 align-items: start;
 

}
.contactoinfo div {
    display: flex;
    flex-direction: column;
 justify-content: start;
 align-items: start;
 width: 90%;
 margin: 5px;
}
.contactoinfo div p {
   
    font-weight: bold;

}
.contactoinfo div span {
    font-size: 14px;
    margin: 5px;
}
.contactos .contactodivision .contactoindirecto {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
  
}
form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.436);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
form h3 {
    width: 100%;
    text-align: center;
    font-size: 22px;
}
form p {
    color: red;
    text-align: end;
    margin: 5px;
    width: 100%;
    font-size: 12px;
}

form label {
    display: block;
    margin-top: 10px;
}

form input, textarea, button {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #e8ebdb;
    color: black;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

form button:hover {
    background-color: #81a39c;
}
#consulta {
    height: 80px;
    
}
/* Estilo para el mensaje emergente */
.mensaje {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    color: black;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mensaje button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color:#81a39c;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.mensaje button:hover {
    background-color: #68847e;
}
section {
    margin-top: 20px;
    margin-bottom: 20px;
}
.contenedorarticulo {
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.galeriaarticulo {
    width: 90vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
   
    position: relative;
    margin-top: 10vh;
    background-color: rgba(247, 246, 246, 0.29);
    padding: 15px;
}
/* Estilo de la galería */
.articulos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: start;
   
}

.articulos img {
    width: 150px;
    height: auto;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 1px 2px 3px gray;
    object-fit: cover;
}

/* Estilo de la vista a pantalla completa */
.fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.fullscreen img {
    max-width: 90%;
    max-height: 80%;
}

.fullscreen .controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.fullscreen .controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

.fullscreen .controls button:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.fullscreen .close {
    position: absolute;
    top: 10px;
    right: 10px;
  
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

.listacatalogo {
    width: 100%;
    height: auto;
}
.listacatalogo ul {
    display: flex;
    align-items: end;
    flex-direction: row;
    list-style: none;
    width: 100%;
    justify-content: end;
    flex-wrap: wrap;
  
    margin: 0;
}
.listacatalogo ul li {
    margin-top: 10px;
    margin-left: 0;
    margin-right: 0;
   
  
}
.listacatalogo ul li a  {
    padding: 8px 12px;
    text-decoration: none;
    margin-right: 5px;
    text-transform: uppercase;
    color: #081c4d;
    transition: 0.3s ease;
    border-radius: 7px;
    background-color: #98bdb5;
    font-size: 14px;
    
}

#botonwahtsapp {
    display: none;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    padding: 1px;
    transition: 0.5s ease;
    position: fixed;
    right: 30px;
    bottom: 25px;
 
    animation: pulso 1s infinite ease-in-out ;
    border-radius: 15px;
    z-index: +20;
}

#botonwahtsapp img {
    width: 100%;
    height: 100%;
}
@keyframes pulso {
    0%, 100% {
        transform: scale(1); /* Tamaño original */
    }
    50% {
        transform: scale(1.05); /* 10% más grande */
    }
}
@media (max-width: 800px) {
    #botonwahtsapp {
        display: flex;
        
    }
    h2 {
       
        font-size: 20px;
    }
    p {
        font-size: 17px;

    }
    li {
        font-size: 17px;
    }
    #menu {
        display: none;
    }
    .menu{
       
        flex-direction: row;
        list-style: none;
        direction: none;
        justify-content: end;
        margin-right: 15px;
    }
    .menu ul {
        justify-content: start;
    }
    #iconcell {
        display: flex;
        z-index: +2;
    }
    .fondo {
        object-fit: cover;
    }
    .logo {
        width: 70vw;
        
    }
    .logo h1 {
        font-size: 22px;
     
    }
    .nosotros .quienes .quienimg{
        width: 40%;
    }
  
    .contactos .contactodivision{
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }
    .redes p {
        display: none;
        
    }
    .contactos .contactodivision .contactodirecto {
        width: 100%;
    }
    .contactos .contactodivision .contactoindirecto {
        width: 100%;
    }
    .listacatalogo ul {
        display: flex;
        align-items: start;
        flex-direction: column;
        list-style: none;
        width: 100%;
        justify-content: start;
        flex-wrap: wrap;
        
    }
    .catalogo .galeria .segmento {
        width: 150px;
        height: 180px;
        position: relative;
    }
    .catalogo .galeria .segmento:hover {
        transform: scale(1.02);
    }
    .segmento img {
     
    }
    .segmento a {
    position: absolute;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.591);
    border-radius: 15px;
    width: 90%;
    padding: 5px;
    text-align: center;
    transition: 0.2 ease;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
   
    bottom:auto;
    border: 1px solid #081c4d;
    text-shadow: 
    0.5px 0 white,   /* Derecha */
    -0.5px 0 white,  /* Izquierda */
    0 0.5px white,   /* Abajo */
    0 -0.5px white;  /* Arriba */
    }
    .segmento a:hover {
        transform: scale(1.05);
        transform: translate(-50%,-50%);
    }
    .catalogo {
      
        
    }
    .nosotros {
        width: 98%;
    }
    .contactos {
        width: 98%;

        
    }

  }

/* ====== PATCH: evitar overflow horizontal + menú móvil desplegable + galería modal ====== */
img, video { max-width: 100%; height: auto; }
.menu { max-width: 100%; }
.menu ul { padding-left: 0; }
.iconcell { border: 0; cursor: pointer; }

/* Menú móvil desplegable (usa .open) */
@media (max-width: 800px){
  #menu{
    display: none;            /* cerrado */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(247,246,246,0.92);
    backdrop-filter: blur(6px);
  }
  #menu.open{ display: flex; } /* abierto */
  .menu ul{
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 70px 15px 15px 15px;
    align-items: stretch;
  }
  .menu li{ margin: 6px 0; }
  .menu li a{ width: 100%; display: block; text-align: center; font-size: 16px; padding: 12px; }
}

/* Galería (thumbnails) */
.galeria-fotos{
  width: 95%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  justify-content: center;
}
.galeria-fotos .thumb{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e8ebdb;
  box-shadow: 1px 2px 3px #98bdb5;
  cursor: pointer;
  transition: 0.2s ease;
}
.galeria-fotos .thumb:hover{ transform: scale(1.02); }
.galeria-fotos .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modal */
.img-modal{ display:none; position:fixed; inset:0; z-index: 9999; }
.img-modal.show{ display:block; }
.img-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.82); }
.img-modal-content{
  position: relative;
  width: min(1100px, 94vw);
  height: min(86vh, 800px);
  margin: 7vh auto 0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
}
#imgModalImg{
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  background: #000;
}
.img-modal-close{
  position:absolute;
  top: -6px;
  right: -6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.85);
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}
.img-modal-prev, .img-modal-next{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.75);
  font-size: 30px;
  cursor:pointer;
}
.img-modal-prev{ left: -10px; }
.img-modal-next{ right: -10px; }

@media (max-width: 800px){
  .img-modal-content{ height: 78vh; margin-top: 10vh; }
  .img-modal-prev{ left: 6px; }
  .img-modal-next{ right: 6px; }
}
/* ===== FIX MODAL: X + flechas centradas y dentro del modal ===== */
.img-modal{ display:none; position:fixed; inset:0; z-index: 9999; }
.img-modal.show{ display:block; }
.img-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.82); }

/* centrado real del contenido */
.img-modal-content{
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(1100px, 94vw);
  height: min(86vh, 820px);
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 18px 58px; /* espacio para flechas */
  box-sizing: border-box;
}

/* imagen */
#imgModalImg{
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  background: #000;
}

/* X centrada en su círculo y encima */
.img-modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.90);
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

/* Flechas dentro del modal (centradas verticalmente) */
.img-modal-prev, .img-modal-next{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.80);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor:pointer;
  z-index: 3;
}
.img-modal-prev{ left: 12px; }
.img-modal-next{ right: 12px; }

.img-modal-prev:hover, .img-modal-next:hover, .img-modal-close:hover{
  background: rgba(255,255,255,.95);
}

@media (max-width: 800px){
  .img-modal-content{
    height: 80vh;
    width: 94vw;
    padding: 12px 52px;
  }
  .img-modal-prev{ left: 8px; }
  .img-modal-next{ right: 8px; }
  .img-modal-close{ top: 10px; right: 10px; }
}
