

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-image: url(src/Fondo.png);
    background-position: 100%;
    background-size: cover;
    transition: background-color 0.5s ease, color 0.5s ease; 
}

html {
  scroll-behavior: smooth;
}

body.light {
    background-color: #f8f8f8;
    background-image: url(src/img_light.png);
    background-size: cover;
    background-repeat: no-repeat;
}

a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
}

header {
    min-height: 70px;
    display: flex;
    background-color: rgb(0, 0, 0);
    justify-content: space-between;
    align-items: center;

}

header a:hover {
    background-color: rgb(255, 255, 255);
    color: black;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 10px;
    height: 60px;
    filter: drop-shadow(0, 0, 6px, rgba(2, 181, 252, 0.8));
    transition: transform 0.3s ease;
       
}

.logo img:hover {
    transform: scale(1.1);
}

.contenido {
    display: block;
    padding: 40px;
    justify-content: center;
    align-items: center;
    /*height: 100vh; => solo sirve si tenemos una sola sección */
    font-size: 1.5em;
    font-family: sans-serif;
    
    
}
.contenido h1 {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.contenido .video_muestra {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
      
}

.contenido li {
    list-style: none;
    margin: 50px;
    
}

.contenido .video_muestra:hover {
    background-color: rgb(2, 181, 252);
    transform: translateY(-5px);
}

nav a {
   font-weight: 600;
   margin-right: 100px;
   padding: 10px;
   border-radius: 5px;
   align-items: center;
   justify-content: space-between;
}

nav a:hover {
    background-color: rgb(2, 181, 252);
}

.marca-personal {
    color:#ffffff; 
}

@media (max-width: 680px)
    {
        header{
            flex-direction: column;
            
        }
        nav {
            padding: 10px 0px;
        }
        .marca-personal {
            color: #000000;
        }

        .video-gallery {
            flex-direction: column;
            margin-top: 30px;
            gap: 30px;
        }

    }

header, .contenido, footer {
    opacity: 0;
    transform: translateY(10px);
    transition: all 1s ease;
}

body.light {
    background-color: #f8f8f8;
    color: #222;
    /*background-image: none;*/
}

body.light header {
    background-color: #ddd;
}

body.light a {
    color: #000;
}

body.light .video_muestra {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* NOTA: cambio de tema claro/oscuro */
#toggle-theme {
    position: fixed;
    top: 25px;
    right: 20px;
    background: rgba(0, 183, 255, 0.9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#toggle-theme:hover {
    background: #00a0e0;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.video-gallery img {
    border-radius: 20px;
    width: 220px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-gallery img:hover {
    transform: scale(1.05);
}

.section-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.6;
}

body.light .section-info {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
}

.form-sugerencias {

    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;

}

.form-sugerencias input, .form-sugerencias textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.form-sugerencias button {

    background-color: rgb(2, 181, 252);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.form-sugerencias button:hover {
    background-color: #0099cc;
}

/* ===== sección del Sidebar =====*/ 

#sidebar {

    position: fixed;
    top: 100;
    left: 0;
    width: 65px;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
    z-index:100;

}

#sidebar:hover {
    width: 220px;
    background-color: rgba(0, 0, 0, 0.95);

}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    gap: 20px;

}

.sidebar-nav a {

    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.3s, transform 0.3s;
}

.sidebar-nav a:hover {
    background-color: rgb(2, 181, 252);
    transform: translateX(5px);
}

/* Ahora para el tema claro  */

body.light #sidebar {
    background-color: rgba(255,255,255,0.85);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

body.light #sidebar:hover {
    background-color: rgba(255, 255, 255, 1);
}

body.light .sidebar-nav a {
    color: #000;
}

main {

    margin-left: 80px;
    transition: margin-left 0.3s ease;
}

#sidebar:hover ~ main {
    margin-left: 240px;
}

/* escondiendo el texto cuando se comprime la sidebar */

#sidebar span {
    opacity: 0;
    pointer-events: none;
    margin-left: -10px;
    transition: opacity 0.3s ease, margin-left 0.3s ease;

}

/* => ahora muestro el texto jeje*/

#sidebar:hover span {

    opacity: 1;
    margin-left: 0px;
}