body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #3b434d; 
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh; 
}

.main-content {
    position: relative;
    z-index: 2; 
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.25); 
    z-index: 1; 
    pointer-events: none; 
}



/* HEADER */
header .logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

header .logonew {
    width: 120px;
    height: auto;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

header .logonew:hover,
header .logo:hover {
    transform: scale(1.1);
}

/* NAVBAR */
.navbar-nav {
    text-align: center;
}

.navbar-toggler {
    border: none;
}

.navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

/* 3D Glassy Language Buttons */
.language-selector,
.mobile-language-selector {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-left: 10px;
}

.mobile-language-selector {
    justify-content: center;
    margin-top: 10px;
}

.language-selector button,
.mobile-language-selector button {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 3px;
    margin: 0 6px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.language-selector button::after,
.mobile-language-selector button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.language-selector button:hover,
.mobile-language-selector button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector button:active,
.mobile-language-selector button:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.language-selector img,
.mobile-language-selector img {
    width: 28px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2; 
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem; 
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
    }

    .hero {
        padding: 30px 20px; 
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem; 
    }

    .hero-content p {
        font-size: 0.9rem; 
    }
}

/* ABOUT SECTION */
.about {
    text-align: center;
}

.about h2 {
    font-size: 2rem;
}

.about p {
    font-size: 1rem;
}

/* FOOTER */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer .social-icon {
    width: 35px;
    height: auto;
    transition: transform 0.3s ease;
}

footer .social-icon:hover {
    transform: scale(1.1);
}

footer p a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer p a:hover {
    text-decoration: underline;
}

.about p,
.hero-content p {
    text-align: justify;
    text-justify: inter-word;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .about h2 {
        font-size: 1.8rem;
    }
    .about p {
        font-size: 0.9rem;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
    
    .language-selector {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar-nav,
    .language-selector {
        display: none !important;
    }
    .navbar-brand {
        margin: auto;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    padding-left: 0; 
}
@media (max-width: 768px) {
    .navbar-brand {
        margin-left: 0;
        padding-left: 0;
    }
    .navbar-nav {
        margin-left: auto;
    }
    .navbar-nav .nav-item {
        display: none;
    }
}

.container-fluid {
    padding-left: 0;
}

@media (max-width: 768px) {
    .navbar-brand {
        flex-direction: row;
    }

    .navbar-toggler {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 90vh;
    }
    .hero-content {
        width: 90%;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .about h2 {
        font-size: 1.5rem;
    }
    .about p {
        font-size: 0.85rem;
    }
    footer .social-icons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu (Hidden by Default) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 15px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    width: 200px;
    text-align: center;
}

/* Mobile Navigation Links */
.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
body {
    background-size: cover; 
    background-position: center; 
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out; 
    opacity: 1;
}

body.fade-out {
    opacity: 0; 
}

.mobile-nav li {
    margin: 10px 0;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Mobile Language Selector (styled under shared 3D Glassy rules) */
.hero .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem; 
    }

    .hero-content p {
        font-size: 1.1rem; 
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero {
        padding: 30px 20px; 
    }
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-video {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    body, .hero-content h1, .hero-content p, .navbar-nav .nav-link, footer p {
        font-size: 10px;
    }
}

@media (max-width: 375px) {
    body, .hero-content h1, .hero-content p, .navbar-nav .nav-link, footer p {
        font-size: 15px;
    }
}
body {
    background-image: url('pics/33.jpeg'); 
    background-size: cover;
    background-position: center center; 
    background-attachment: fixed;
}

@media (max-width: 375px) {
    body {
        background-size: cover;
        background-position: center center;
    }
    .hero {
        background-size: cover;
        background-position: center;
    }
}

#subscribe-button {
    font-size: 16px; 
    padding: 12px 20px;
    border-radius: 8px; 
    transition: all 0.3s ease;
}
.display-3{
    font-weight: bold;
    font-size: 40px;
}

@media (max-width: 375px) {
    #subscribe-button {
        font-size: 10px; 
        padding: 8px 14px;
        border-radius: 6px;
    }
    #subscribe-button:hover {
        transform: scale(1.1);
        background-color: #007bff;
    }
}
/* Jumbotron between header and footer */
.jumbotron {
    background: rgba(101, 101, 101, 0.3);
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
}

.jumbotron h1, 
.jumbotron p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); 
    max-width: 1300px;
}

@media (max-width: 768px) {
    .jumbotron {
        padding: 40px 10px;
    }

    .jumbotron h1 {
        font-size: 2rem;
    }

    .jumbotron p {
        font-size: 1rem;
    }
}
#subscribe-button {
    font-size: 1.5rem; 
    padding: 10px 25px; 
    border-radius: 10px; 
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#subscribe-button:hover {
    transform: scale(1.1); 
    background-color: #2faafb; 
}
.jumbotron {
    margin-top: 15px;
}

@media (max-width: 912px) and (min-width: 768px)
     {

    .navbar-nav {
        display: none !important;
    }

    .language-selector {
        display: none !important;
    }

    .mobile-language-selector {
        display: flex !important;
        justify-content: center;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .navbar-nav {
        display: none !important;
    }
    
    .navbar-nav.show {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 768px) {
    #subscribe-button {
        font-size: 1rem; 
        padding: 10px 18px; 
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    #subscribe-button {
        font-size: 0.9rem; 
        padding: 8px 15px; 
        border-radius: 5px;
    }
}

@media (max-width: 375px) {
    #subscribe-button {
        font-size: 0.8rem;
        padding: 5px 10px;
        border-radius: 4px;
    }
}
body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: fadeBackground 120s infinite;
}

/* Ocultar titulo y descripcion de videos en la version movil (mostrar solo la miniatura) */
@media (max-width: 767.98px) {
    .card-body {
        display: none !important;
    }
}


