h1{
    font-family: 'Bebas Neue', cursive;
    font-size: 2em;
}

h2{
    font-family: 'Bebas Neue', cursive;
    font-size: 2em;
}

p{
    font-family: 'Roboto Condensed', sans-serif;
}

.form{
    margin-bottom: 25px;
    width: 100%;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    margin-bottom: 40px;
}

.seccion-sup{
	margin-top: 80px;
}

.seccion-inf{
	margin-bottom: 100px;
}

.index{
    margin-top: 63px;
}

.txtModal{
    font-size: 1.2em;
}

.tituloModal{
    color: darkred;
}

.align-der{
    float: right;
}

#botonesMenu{
    font-family: 'Bebas Neue', cursive;
    font-size: 1.4em;
}

#formulario{
    padding-top: 10px;
}

.hero-video-container {
  margin-top: 63px; /* mismo valor que .index */
}

/* NAVBAR PERSONALIZADA */
.navbar-custom {
    background-color: #ffffff !important;
}

.navbar-custom .nav-link {
    color: #000 !important;
}

.navbar-custom .nav-link:hover {
    color: #555 !important;
}

.navbar-custom .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #ccc;
}

.navbar-custom .dropdown-item {
    color: #000;
}

.navbar-custom .dropdown-item:hover {
    background-color: #f0f0f0;
}

/* LOGO COMO TEXTO */
.navbar-brand-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #000 !important;
    text-decoration: none;
}

/* Mostrar submenú al hacer hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* evita salto */
}

/* Opcional: evitar que se cierre muy rápido al mover el mouse */
.dropdown-menu {
    transition: opacity 0.3s ease;
}

/* Eliminar caret (flechita) */
.navbar .dropdown-toggle::after {
    display: none !important;
}

.navbar-brand-text {
    font-family: 'Libre Bodoni', serif;
    font-size: 28px;
    color: #000 !important;
    text-decoration: none;
}

/* HERO CONTENT: tamaño responsive */
.hero-content h1 {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(2rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 3rem);
    line-height: 1.3;
    margin: 0.5rem 0 0;
}

.hero-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 0 1rem;
    max-width: 90vw;
    width: 100%;
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2.8rem; /* tamaño mínimo garantizado */
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
}

/* === HERO VIDEO CONTAINER FINAL === */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 63px; /* igual a .index */
}

.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    display: block; /* forzar que siempre tengan display block base */
    width: auto;
    height: auto;
}

/* Video móvil inicialmente oculto */
.video-mobile {
    display: none;
}

/* MEDIA QUERY: en móviles mostrar vid2.mp4 y ocultar vid1.mp4 */
/* Además aseguramos tamaño y posición para ambos videos */
@media (max-width: 768px) {
    .video-desktop {
        display: none !important;
        width: auto !important;
        height: auto !important;
    }
    .video-mobile {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: translate(-50%, -50%) !important;
        object-fit: cover !important;
        z-index: 1 !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Media query para desktop grande */
@media (min-width: 769px) {
    .video-desktop {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: translate(-50%, -50%) !important;
        object-fit: cover !important;
        z-index: 1 !important;
        width: auto !important;
        height: auto !important;
    }
    .video-mobile {
        display: none !important;
    }
}

/* === OVERLAY === */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    .hero-content p {
        font-size: 2rem;
    }
}

.overlay-container {
    position: relative;
}

.overlay-container img {
    display: block;
    width: 100%;
    height: auto;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 30px; /* antes era 10px, lo bajamos */
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem; /* antes 3rem, ahora más grande */
    color: white;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
