/* Modo oscuro para enlaces en el menú */
body.dark-mode #cd-main-nav ul li a {
    color: #FFFFFF;
    /* Cambia el color de los enlaces a blanco en modo oscuro */
}

body.dark-mode #cd-main-nav ul li a:hover {
    color: #444;
    /* Cambia el color de los enlaces a blanco en modo oscuro */
}

body.dark-mode #cd-main-nav {
    background-color: #000000;
    /* Fondo negro en modo oscuro */
}

/* Contenedor principal */

header {
    position: relative;
    height: 60px;
    text-align: center;
}

header h1 {
    font-size: 16px;
}

header #cd-logo {
    width: 172px;
    margin-top: 6px;
margin-bottom: 12px;
    margin-left: 50px;
}

#cd-logo2 img {
    display: inline-block;
}


/* MENU HOME */
#cd-nav ul {
    /* mobile first */
    position: fixed;
    width: 90%;
    font-weight: 600;
    border: solid #000 4px;
    max-width: 400px;
    right: 3%;
    bottom: 5%;
    padding-top: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background: rgba(250, 250, 250, 0.9);
    visibility: hidden;
    /* remove overflow: hidden if you want to create a drop-down menu - but then remember to fix/eliminate the list items animation */
    overflow: hidden;
    z-index: 9;
    /* Force Hardware Acceleration in WebKit */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    -webkit-transform-origin: 100% 100%;
    -moz-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    -o-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    -webkit-transition: -webkit-transform 0.3s, visibility 0s 0.3s;
    -moz-transition: -moz-transform 0.3s, visibility 0s 0.3s;
    transition: transform 0.3s, visibility 0s 0.3s;
}

/* Modo oscuro */
body.dark-mode #cd-nav ul {
    color: #FFFFFF;
    /* Cambia el color del texto a blanco */
}

/* Cambia el color de los enlaces en modo oscuro */
body.dark-mode #cd-nav ul li a {
    color: #FFFFFF;
    /* Enlaces en blanco */
}

/* Cambia el color de los enlaces en modo claro */
#cd-nav ul li a {
    color: #000000;
    font-size: 14px;
    /* Enlaces en negro */
}

#cd-logo8 {
    width: 100%;
    display: inline-block;
}

#cd-logo8 img {
    width: 150px;
    display: inline-block;
}

#cd-nav ul li {
    /* Force Hardware Acceleration in WebKit */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#cd-nav ul.is-visible .c-c-link {
    height: 93px;
}

#cd-nav ul.is-visible {
    visibility: visible;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-transform 0.3s, visibility 0s 0s;
    -moz-transition: -moz-transform 0.3s, visibility 0s 0s;
    transition: transform 0.3s, visibility 0s 0s;
}

.dark-mode #cd-nav ul.is-visible {
    background-color: #000000;
    /* Fondo negro en modo oscuro */
}

#cd-nav ul.is-visible li:nth-child(1) {
    /* list items animation */
    -webkit-animation: cd-slide-in 0.2s;
    -moz-animation: cd-slide-in 0.2s;
    animation: cd-slide-in 0.2s;
}

#cd-nav ul.is-visible li:nth-child(2) {
    -webkit-animation: cd-slide-in 0.3s;
    -moz-animation: cd-slide-in 0.3s;
    animation: cd-slide-in 0.3s;
}

#cd-nav ul.is-visible li:nth-child(3) {
    -webkit-animation: cd-slide-in 0.4s;
    -moz-animation: cd-slide-in 0.4s;
    animation: cd-slide-in 0.4s;
}

#cd-nav ul.is-visible li:nth-child(4) {
    -webkit-animation: cd-slide-in 0.5s;
    -moz-animation: cd-slide-in 0.5s;
    animation: cd-slide-in 0.5s;
}

#cd-nav ul.is-visible li:nth-child(5) {
    -webkit-animation: cd-slide-in 0.6s;
    -moz-animation: cd-slide-in 0.6s;
    animation: cd-slide-in 0.6s;
}

#cd-nav li a {
    display: block;
    padding: 18px;
    color: #000;
    border-bottom: 1px solid #333;
}

#cd-nav li:last-child a {
    border-bottom: none;
}



@media only screen and (min-width: 1170px) {


    .logo-centro {
        display: none;
    }

    #cd-nav ul {
        /* the navigation moves to the top */
        position: absolute;
        width: auto;
        max-width: none;
        bottom: auto;
        top: 0;
        border: none;
        background: transparent;
        visibility: visible;
        box-shadow: none;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        -webkit-transition: all 0s;
        -moz-transition: all 0s;
        transition: all 0s;
    }

    #cd-nav li {
        display: inline-block;
    }

  #cd-nav img {
      max-width: 80%;
    }

    #cd-nav li a {
        opacity: 1;
        padding: .4em;
        color: #111;
        margin-left: 1.2em;
        border-bottom: none;
        font-size: 14px;
        font-weight: 600;
    }

    #cd-nav li a:hover {
        color: #777;
    }

    #cd-nav.is-fixed ul {
        /* when the user scrolls down, the navigation moves to the bottom right in Fixed position - as on touch devices */
        position: fixed;
        width: 90%;
        max-width: 400px;
        bottom: 20px;
        top: auto;
        background: #FFFFFF;
        visibility: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
    }

    #cd-nav.is-fixed ul li {
        display: block;
    }

    #cd-nav.is-fixed ul li a {
        padding: 1.6em;
        margin-left: 0;
        font-size: 16px;
        border-bottom: 1px solid #666;
    }

    #cd-nav ul.has-transitions {
        /* this class is used to bring back transitions when the navigation moves at the bottom right */
        -webkit-transition: -webkit-transform 0.3s, visibility 0s 0.3s;
        -moz-transition: -moz-transform 0.3s, visibility 0s 0.3s;
        transition: transform 0.3s, visibility 0s 0.3s;
    }

    #cd-nav ul.is-visible {
        /* this class is used to bring back the navigation animation - as on touch devices */
        visibility: visible;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        -webkit-transition: -webkit-transform 0.3s, visibility 0s 0s;
        -moz-transition: -moz-transform 0.3s, visibility 0s 0s;
        transition: transform 0.3s, visibility 0s 0s;
    }

    #cd-nav ul.is-hidden {
        /* this class is used to animate the scale down the navigation when the user scrolls down with the navigation still open */
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
        -webkit-transition: -webkit-transform 0.3s;
        -moz-transition: -moz-transform 0.3s;
        transition: transform 0.3s;
    }

    ul.is-visible #cd-logo8 {
        width: 400px;
        display: inline-block;
    }

}

.cd-nav-trigger {
    position: fixed;
    top: 18px;
    right: 5%;
    width: 30px;
    height: 30px;
    background: #111;
    border-radius: 0.25em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    /* image replacement */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    z-index: 7;
}

.cd-nav-trigger span {
    /* the span element is used to create the menu icon */
    position: absolute;
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    top: 50%;
    margin-top: -1px;
    left: 50%;
    margin-left: -10px;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    transition: background 0.3s;
}

.cd-nav-trigger span::before,
.cd-nav-trigger span::after {
    content: '';
    position: absolute;
    left: 0;
    background: inherit;
    width: 100%;
    height: 100%;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform 0.3s, background 0s;
    -moz-transition: -moz-transform 0.3s, background 0s;
    transition: transform 0.3s, background 0s;
}

.cd-nav-trigger span::before {
    top: -6px;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -ms-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
}

.cd-nav-trigger span::after {
    bottom: -6px;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -ms-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
}

.cd-nav-trigger.menu-is-open {
    box-shadow: none;
z-index: 1500;
}

.cd-nav-trigger.menu-is-open span {
    background: rgba(232, 74, 100, 0);
}

.cd-nav-trigger.menu-is-open span::before,
.cd-nav-trigger.menu-is-open span::after {
    background: #ccc;
}

.cd-nav-trigger.menu-is-open span::before {
    top: 0;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

.cd-nav-trigger.menu-is-open span::after {
    bottom: 0;
    -webkit-transform: rotate(225deg);
    -moz-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    -o-transform: rotate(225deg);
    transform: rotate(225deg);
}


/* --------------------------------Intro-------------------------------- */
#cd-intro,
#cd-intro-2,
#cd-intro-3,
#cd-intro-4,
#cd-intro-5,
#cd-intro-6 {
    padding-top: 104px;
    border-top: 6px solid #111;
    position: relative;
    height: 412px;
    background-size: cover;
    z-index: 2;
    margin-top: 2px;
    margin-bottom: 18px;
}

#cd-intro-tagline,
#cd-intro-tagline-2,
#cd-intro-tagline-3,
#cd-intro-tagline-4,
#cd-intro-tagline-5 {
    width: 90%;
    margin: 0 auto;
    text-align: left;
    padding-top: 200px;
}

#cd-intro a,
#cd-intro-2 a,
#cd-intro-3 a,
#cd-intro-4 a,
#cd-intro-5 a {
    font-family: "Open Sans", sans-serif;
    color: #fff;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 2);
    display: inline-block;
    text-align: left;
}

#cd-intro a:hover,
#cd-intro-2 a:hover,
#cd-intro-3 a:hover,
#cd-intro-4 a:hover,
#cd-intro-5 a:hover {
    color: #BBB;
}

#line-x,
#line-x2,
#line-x3,
#line-x4,
#line-x5,
#line-x6 {
    border-bottom: 2px solid #fff;
}

.movie-4,
.movie-3,
.movie-y,
.movie-w,
.movie-z {
    background-size: cover;
    /* Escala la imagen para llenar todo el contenedor */
    background-position: center;
    /* Centra la imagen horizontal y verticalmente */
    background-repeat: no-repeat;
    /* Evita que se repita la imagen */
    width: 100%;
    /* Asegura que el contenedor sea ancho completo */
    height: 100vh;
    /* O altura específica si prefieres (ej. 798px) */
}

.movie-z {
    background: url(../images/004.webp) no-repeat center top;
}

.movie-y {
    background: url(../images/0Ar.webp) no-repeat center center;
}

.movie-3 {
    background: url(../images/0Ed.webp) no-repeat center top;
}

.movie-4 {
    background: url(../images/004z.webp) no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    /* o una altura específica como 798px */
}


.movie-w {
    background: url(../images/0Cj.webp) no-repeat center center;
}

@media only screen and (min-width: 1170px) {
    .cd-nav-trigger {
        position: fixed;
        top: 8px;
        right: 5%;
        width: 44px;
        height: 44px;
        background: #111;
        border-radius: 0.25em;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
        /* image replacement */
        overflow: hidden;
        text-indent: 100%;
        white-space: nowrap;
        z-index: 7;
    }

    .dark-mode-btn i {
        font-size: .5em;
    }

    .social-icons-23 img {
        vertical-align: top;
        display: inline;
        max-width: 32px;
        margin: 6px;
    }

    #cd-intro,
    #cd-intro-2,
    #cd-intro-3,
    #cd-intro-4,
    #cd-intro-5 {
        margin-top: 10px;
        height: 798px;
    }

    #cd-intro a,
    #cd-intro-2 a,
    #cd-intro-3 a,
    #cd-intro-4 a,
    #cd-intro-5 a {
        font-family: "Open Sans", sans-serif;
        color: #fff;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 2);
        padding-bottom: 8px;
        display: inline-block;
        text-align: left;
    }

    #cd-intro-tagline,
    #cd-intro-tagline-2,
    #cd-intro-tagline-3,
    #cd-intro-tagline-4,
    #cd-intro-tagline-5 {
        padding-top: 350px;
        text-align: left;
    }

    .cd-nav-trigger {
        /* el trigger del menú está oculto por defecto en dispositivos de escritorio */
        visibility: hidden;
        transform: scale(0);
        transition: transform 0.3s, visibility 0s 0.3s;
    }

    .is-fixed .cd-nav-trigger {
        visibility: visible;
        transition: all 0s;
        transform: scale(1);
        animation: cd-bounce-in 0.3s linear;
    }

    header {
        height: 70px;
        padding-top: 6px;
    }

    header #cd-logo {
        width: 172px;
        margin-top: 8px;
        margin-left: 52px;
    }

    #cd-logo8 {
        width: 100px;
        display: inline-block;
    }

    #logo-casa {
        transition: all 0.3s ease-in-out;
        /* Añadir una transición suave */
    }

    #logo-casa:hover {
        content: url('../images/cc-menu-over.svg');
        /* Imagen que aparecerá al hacer hover */
        transform: scale(1.1);
        /* Efecto de aumento opcional */
    }

    #cd-intro a,
    #cd-intro-2 a,
    #cd-intro-3 a,
    #cd-intro-4 a,
    #cd-intro-5 a {
        font-size: 35px;
        padding-top: 8px;
        display: inline-block;
        color: #FFF;
        font-weight: 300;
    }
}

/* Animación para el menú en la versión de escritorio */
@keyframes cd-bounce-in {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}



/* Estilos para dispositivos móviles */
@media (max-width: 768px) {

  #cd-nav img {
      max-width: 70%;
    }
    .dark-mode-btn i {
        font-size: 1.5em;
    }

    #cd-intro-tagline,
    #cd-intro-tagline-2,
    #cd-intro-tagline-3,
    #cd-intro-tagline-4,
    #cd-intro-tagline-5 {
        width: 100%;
        margin: 0 auto;
        text-align: left;
        padding-top: 100px;
    }



    #cd-intro a,
    #cd-intro-2 a,
    #cd-intro-3 a,
    #cd-intro-4 a,
    #cd-intro-5 a {
        color: #fff;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 2);
        display: inline-block;
        text-align: left;
    }

    #cd-intro,
    #cd-intro-2,
    #cd-intro-3,
    #cd-intro-4,
    #cd-intro-5 {
        margin-top: 1px;
        height: 298px;
    }



    #cd-intro-4 {
        height: 298px;
    }

}



.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    border-top: 6px solid black;
    margin-bottom: 28px;
}

.caption {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 2);
    padding-bottom: 72px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 2rem;
    line-height: 2.5rem;
}




.caption a {
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    transform-origin: bottom left;
    padding: 6px;
    /* origen de transformación en la esquina inferior izquierda */
}

.caption a:hover {
    color: #eee;
    transform: scale(1.1);
    /* escala 10% */
}

.caption a:first-child {
    border-bottom: 2px solid white;
    padding-top: 7px;
    padding-bottom: 7px;
}



@media (max-width: 600px) {

.image-container img {
    margin-bottom: 8px;
}

    .caption {
        font-size: 1.2rem;
        display: inline-block;

    line-height: 1.5rem;
    padding-bottom: 42px;
    }

.caption a {
    transform-origin: bottom left;
    padding: 4px;
    /* origen de transformación en la esquina inferior izquierda */
}

}