*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}


.fade-in {
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInSlide 1s ease-out forwards;
}

@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  animation: bounceIn 1s ease-in-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.botonRow {
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #0083cb;
  cursor: pointer;
  border: 1px solid #0083cb;
}

.botonRow:hover {
  transform: scale(1.05);
  background-color: #0083cb; /* o el color que quieras */
  color: white;
}



.container {
  position: relative;
  overflow: visible;
  z-index: 1;
  width: 100%;
  height: 100vh;
  padding-top: 13px;
  padding-left: 8%;
  padding-right: 8%;
  box-sizing: border-box;
}

 .navbar{
    position: relative;
 }


.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.fondo-a {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/fondo1.jpg');
  opacity: 1;
}


.navbar{
    height: 12%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    width: 100px;
    height: auto;
    margin-top: 25px;
}
.menu-icon{
    display: none;
}
nav{
    flex:1;
    text-align: right;
}
nav > ul > li {
  list-style: none;
  display: inline-block;
  margin-left: 60px;
}

nav > ul > li > a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
}

nav ul li a:hover{
    text-decoration: underline;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  position: relative;
  z-index: 1; /* ¡Clave para no tapar el submenú! */
  margin-top: 20px;
}
.col {
  flex: 1 1 50%;
  padding: 20px;
}

h1{
    color: #fff;
    font-size: 75px;
    text-shadow: 0 0 5px #999;
    font-style: italic;
}
.z49{
    color: #fff;
    font-size: 17px;
    line-height: 18px;
    text-shadow: 0 0 5px #999;
}
.botonRow{
    width: 180px;
    font-size: 14px;
    padding: 12px 0;
    background: #fff;
    border-radius: 20px;
    outline: none;
    margin-top: 30px;
}
.card{
    width: 230px;
    height: 230px;
    display: inline-block;
    border-radius: 50%; /* Hace que sea un círculo */
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    margin: 10px 15px;
    transition: transform 0.5s, box-shadow 0.5s;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    position: relative;
}
.card1{
    background-image: url(../img/logoD1.png);
}
.card2{
    background-image: url(../img/logoD2.png);
}
.card:hover{
    transform: translateY(-10px);
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8); /* Sombra blanca suave */
}
h5{
    color: #fff;
    text-shadow: 0 0 5px #999;
    font-size: 25px;
    text-align: center;
    margin-top: -40px;
}
.card h5 {
    font-size: 30px;
    margin: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.title{
    text-align: left;
    padding-top: 15px;
    padding-left: 15px;
    background-color: #ECEFFE;
    font-size: 30px;
    text-shadow: 0 0 5px;
    font-style: italic;
    color: #0083cb;
}
.barra{
  background-color: #0083cb;
  width: 100%;
  height: 25px;
}


.dropdown {
  position: relative;
}
.submenu {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0083cb;
  border-radius: 0px 0px 10px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 100px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1003;
}

.submenu li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.dropdown.active .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.arrow {
  font-size: 20px;
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}





@media (orientation:landscape) and (max-width: 1024px){
 .container{
    height: auto;
 }
 .menu-icon{
    margin-left: 450px!important;
 }
}
@media (max-width: 768px) {
    .submenu{
        max-width: 200px;
        height: auto;
    }
    .container{
        height: 100vh;
    }
    .row {
        flex-direction: column;
        height: auto;
    }

    .col {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .logo {
        width: 80px;
        height: auto;
    }

    h1 {
        margin-top: 80px;
        font-size: 50px;
    }

    .z49 {
        font-size: 18px;
    }

    .card {
        width: 150px;
        height: 150px;
        margin: 10px auto;
    }

    .card h5 {
        font-size: 20px;
    }
    nav {
        width: 100%;
    }


    nav ul li {
        margin: 20px 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        padding-top: 100px;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
     nav ul.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    nav ul li a {
        font-size: 20px;
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }
    nav ul li a:hover {
        color: #00bfff;
    }

    .navbar {
           height: 12%;
            display: flex;
            align-items: center;
            justify-content: space-between;
    }

   .menu-icon {
        display: block;
        z-index: 1000;
        position: relative;
        margin-left: 200px;
    }
}
