/* Reset básico y mejoras generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img { 
    user-select: none; -webkit-user-drag: none;
}

body {
    font-family: "Outfit", system-ui, sans-serif;
    background-image: url("../img/Santuario.jpg");
    background-color: #f8f6f4;
    /*background-image: url("/img/NSSC_3D03.png");*/
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;     /* Escala la imagen para cubrir todo sin distorsión */
    background-attachment: fixed;  /* ¡Esto es lo que la mantiene fija! */
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #f0e9e4;
    border-bottom: 1px solid #d4c9bd;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo img {
    width: 60px;
    height: auto;
    display: block;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
}

nav a {
    color: #2c1810;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    color: #c8102e;
    transform: translateY(-1px);
    text-shadow: #c8102e;

}

.vidIzqP {
    width: 30%;
    margin: 1%;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.vidIzqP02 {
    width: 2%;
    margin: 0%;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.menu-principal {
    color: #2c1810;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

/* Contenido principal */
main {
    flex: 1;
}

.hero {
    margin-top: 125px;;
    padding: 2rem 5%;
    text-align: center;
    position: relative; /* corrige y permite que se lea sobre el */
}

.hero2 {
    margin-top: 100px;;
    padding: 2rem 5%;
    text-align: justify;
    position: relative; /* corrige y permite que se lea sobre el */
}
.hero2 h1, h2, h4, h5 {
    text-align: center;
}
.oracion {
    text-align: center;
}
.caja-texto-inicio,
.caja-video-inicio {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.caja-video-inicio video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.caja-video-inicio02 video {
    width: 30%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #2c1810;
    color: #f0e9e4;
    margin-top: auto;
}

.caja-texto-inicio h1 {
    text-align: center;
}

.caja-texto-inicio img {
    display: block;
    /*flex-direction: row;*/
    padding: 1%;
    width: 30%;
    height: auto;
    text-align: left;
}

.caja-texto-inicio p {
    text-align: justify;
}

h1, h2, h6 {
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #2c1810;
}

/* Dropdown básico con hover */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    padding-right: 1.2em; /* espacio para la flecha */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin: 4px 0 0 0;
    list-style: none;
    z-index: 10;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #c8102e;
}

/* Mostrar al hacer hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

#confianza, #dia1, #dia2, #dia3, #dia4, #dia5, #dia6, #dia7, #dia8, #dia9 {
  scroll-margin-top: 95px;
}

/* css/index.css o main.css */
#NS,
#misas,
#misioneros,
#ubicacion {
    scroll-margin-top: 110px;   /* prueba entre 90–140 px */
}

/* Flecha indicadora */
.dropdown-toggle::after {
    content: "▾";
    position: absolute;
    right: 8px;
    font-size: 0.9em;
    pointer-events: none;
}

/* Para móviles: mejorar usabilidad */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: #f8f8f8;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* ===== TABLA HORARIOS ===== */

.horarios-section {
    max-width: 900px;          /* ← más ancho que las otras cajas de 700px */
    width: 90%;                /* flexible en móviles */
    margin: 60px auto;         /* más espacio vertical consistente */
    padding: 5px;
    margin: 0 auto 3rem;
    background: white;
    padding: 1rem;
    text-align: center !important;
}

.centrado {
    text-align: center;
}

/* Contenedor que centra la tabla perfectamente */
.tabla-contenedor {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto 1rem;
}

table {
    text-align: center;
}

.caja-video-inicio p, tr, td {
    text-align: center;
    align-items: center;
    align-content: center;
    align-self: center;
}

#horarioinvierno {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    font-size: 1.05rem;
}

#horarioinvierno td {
    padding: 1.2rem 1.1rem;
    border: 1px solid #d4c9bd;
    text-align: center !important;
    vertical-align: middle;
}

#horarioinvierno tr:first-child td {
    background: #f0e9e4;
    font-weight: 700;
    color: #2c1810;
    font-size: 1.15rem;
}


#horarioinvierno .texto-rojo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #c8102e;
}

/* Alineación más parecida al resto de la web en móviles */
@media (max-width: 768px) {
    .horarios-section {
        padding: 0 15px;
        margin: 40px auto;
    }
    
    #horarioinvierno td {
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }
}
/*.texto-rojo {
    color: #c8102e;
    font-weight: 600;
}*/

.google-maps {
    padding-top: 2%;
    width:100%;
    height:100%;
    align-content: center;
}

.btn-scrolltop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 999;
    text-decoration: none;
  }

  .btn-scrolltop.show {
    opacity: 0.85;
    visibility: visible;
  }

  .btn-scrolltop:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: #555;
  }

  /* Para que el enlace #top exista */
  #top {
    position: absolute;
    top: 0;
  }