* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
background: #004B49;
    color: white;
    padding: 15px 20px;
}

/* Estilo de imagen de logo */
.logo {
    font-weight: bold;
    font-size: 20px;
}
    
.logo img {
    height: 120px;
    object-fit: contain;
}


/* Estilo del contenedor del nombre */

.bienvenida-texto {
    margin: 0;
    font-size: 14px;
    color: #C1440E;
}


.bienvenida-texto strong {
    font-size: 18px;
    color: #FF5733;
}

/* ===== BUSQUEDA ===== */
.busqueda {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.busqueda input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80%;
    font-size: 14px;
}

.busqueda button {
    padding: 8px;
    border: none;
    background-color: transparent;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.busqueda button:hover {
    background-color: #45a049;
}

/* ===== BOTÃ“N HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
}

/* ===== CONTENIDO ===== */
main {
    padding: 15px;
    flex-grow: 1;
}

iframe {
    width: 100%;
    height: 61.5vh;
    border: none;
    background: transparent;
    display: block;
    overflow: hidden;
}

/* ===== FOOTER ===== */
/*
footer {
    text-align: center;
    padding: 10px;
    background: rgba(34, 34, 34, 0.7);
    width: 100%;
    margin-top: auto;
    position: relative;
    color: white;
}
*/

.footer {
  width: 100%;
  padding: 18px 10px 14px;
  text-align: center;
  margin-top: auto;
 background: #004B49;;
  position: relative;
    color: white;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;               /* un poco mÃ¡s de aire */
  margin-bottom: 10px;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TamaÃ±o base unificado */
.footer-icons img {
  height: 52px;            /* ðŸ”‘ manda el alto */
  width: auto;             /* ðŸ”‘ ancho libre (Waze feliz) */
  max-width: 72px;         /* lÃ­mite para Waze */
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.footer-icons img:hover {
  transform: scale(1.12);
  opacity: 0.85;
}


h1, p {
    color: white;
}

.menuPrincial {
    list-style: none;
    background: transparent;
    padding: 20px;
}

.menuPrincial li {
    position: relative;
    display: inline-block;
}

.menuPrincial a {
    text-decoration: none;
    padding: 10px;
    color: white;
    display: block;
}

.menuPrincial a:hover {
    color: red;
}

/* Estilo para el submenÃº */
.menuPrincial ul {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color:#004B49;
    min-width: 160px;
    padding: 0;
    z-index: 1000;
    border-radius: 5px;
}

/* Mostrar el submenÃº cuando se pasa el ratÃ³n sobre el elemento padre */
.menuPrincial li:hover > ul {
    display: block;
}

/* Estilo de los enlaces dentro del submenÃº */
.menuPrincial ul li a {
    padding: 12px;
    color: white;
    text-decoration: none;
}

.menuPrincial ul li a:hover {
    background-color: rgba(34, 34, 34, 0.7);
    color: red;
}

/* Sub-submenÃº (menÃº de segundo nivel) */
.menuPrincial ul ul {
    left: 100%; 
    top: 0;
}

/* Asegurar que el submenÃº y sub-submenÃº tengan un estilo adecuado */
.menuPrincial li ul li {
    display: block;
    position: relative; 
}

/* Efecto de transiciÃ³n (opcional) */
.menuPrincial ul li a {
    transition: color 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
   
    .logo img {
        height: 50px; 
    }

    .busqueda {
        display: none;
    }
    
    .bienvenida-texto br {
        display: none;
    }
    
    .bienvenida-texto strong {
        display: inline;
        margin-left: 5px;
        font-size: 16px;
    }

    iframe {
        height: 78vh;
        overflow-x: hidden; 
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column; 
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(34, 34, 34, 0.95);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        display: flex;
    }
    
    .usuario-menu {
        display: block; 
        padding: 15px 20px;
        border-bottom: 1px solid #555;
    }

    .nav ul, .nav li ul {
        flex-direction: column;
        position: relative; 
        top: auto;
        left: auto;
        box-shadow: none;
        width: 100%;
    }

    .nav li a {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .nav li ul {
        display: none;
        background-color: rgba(0, 0, 0, 0.2); 
    }

    footer {
        position: relative;
        margin-top: 1px;
    }
}



#portrait-warning, #landscape-warning {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#portrait-warning .portrait-box,
#landscape-warning .portrait-box {
  max-width: 560px;
  width: 100%;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

#portrait-warning .portrait-sub,
#landscape-warning .portrait-sub {
  opacity: 0.85;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Si el padre exige PORTRAIT y el dispositivo estÃ¡ en LANDSCAPE */
/* =======================
   Modo requerido PORTRAIT
   ======================= */
@media (orientation: landscape) and (pointer: coarse) {
    body.require-portrait #portrait-warning {
        display: flex;
    }

    body.require-portrait #site-content {
        display: none;
    }
}

/* =======================
   Modo requerido LANDSCAPE
   ======================= */
@media (orientation: portrait) and (pointer: coarse) {
    body.require-landscape #landscape-warning {
        display: flex;
    }

    body.require-landscape #site-content {
        display: none;
    }
}


/*NUEVOS CSS*/
.nav-galeria {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px; /* Cambié el tamaño de la fuente para que sea más acorde */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro para los botones */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Agregué transición suave */
    border-radius: 50%; /* Hace los botones redondos */
    user-select: none;
}

#prevImg {
    left: 10px;
}

#nextImg {
    right: 10px;
}

/* Efecto al pasar el mouse */
.nav-galeria:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Aumenta la opacidad del fondo al pasar el mouse */
    transform: translateY(-50%) scale(1.2); /* Aumenta el tamaño del botón cuando se pasa el mouse */
}

.visor-galeria {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80vw; /* Ajusta el tamaño del contenedor al 80% del ancho de la ventana */
    height: 70vh; /* Ajusta la altura del contenedor */
    overflow: hidden;
}

.img-galeria {
    max-width: 100%; /* Hace que la imagen se ajuste al ancho máximo disponible */
    max-height: 100%; /* Hace que la imagen se ajuste a la altura máxima disponible */
    object-fit: contain; /* La imagen se ajustará manteniendo su proporción */
}



/* ===== CAMPO CONTRASEÑA TIPO BANCO ===== */
/* ===== CAMPO CONTRASEÑA TIPO BANCO ===== */

.vmr-pass-group{
    width:80%;
    margin:10px auto 0 auto;
    display:flex;
    align-items:stretch;
    border:1px solid #dcdcdc;
    border-radius:6px;
    overflow:hidden;
    background:#fff;
}

/* input contraseña */
.vmr-pass-input{
    flex:1;
    border:none;
    padding:12px;
    font-size:15px;
    outline:none;
        min-width:0; /* MUY IMPORTANTE PARA MÓVILES */

}

/* boton ojo */
.vmr-pass-btn{
    width:55px;
    border:none;
    background:#f4f4f4;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
    flex-shrink:0; /* EVITA QUE DESAPAREZCA EN MÓVIL */
}

/* hover */
.vmr-pass-btn:hover{
    background:#e7e7e7;
}

/* SweetAlert fix (MUY IMPORTANTE) */
.swal2-html-container{
    overflow:visible !important;
}

/* SweetAlert input base */
.swal2-input{
    height: 2.625em !important;
    padding: 0 0.75em !important;
    font-size: 1.125em !important;
    border-radius: 0.25em !important;
}

/* hacer que el password sea idéntico */
.vmr-pass-input{
    height: 2.625em;
    padding: 0 0.75em;
    font-size: 1.125em;
    font-family: inherit;
    line-height: normal;
}

/* ajustar grupo contenedor */
.vmr-pass-group{
    width: 80%;
    margin: 1em auto 0 auto;
}

/* centrar también el RUT */
#rut{
    width: 80% !important;
    margin: 0.8em auto !important;
    display: block;
}

/* RUT (SweetAlert) */
.swal2-input::placeholder{
    color: #9aa0a6 !important;
    opacity: 1;
}

/* PASSWORD */
.vmr-pass-input::placeholder{
    color: #9aa0a6 !important;
    opacity: 1;
}

/* Compatibilidad navegadores */
.vmr-pass-input::-webkit-input-placeholder{ color:#9aa0a6 !important; }
.vmr-pass-input:-ms-input-placeholder{ color:#9aa0a6 !important; }
.vmr-pass-input::-ms-input-placeholder{ color:#9aa0a6 !important; }