html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial;
  background: white;
  color: #153661;
}

/* ===========================================================
   HEADER
=========================================================== */
.head {
  position: fixed;
  top: 0;
  width: 100%;
  height: 75px;
  background: #153661;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.main-nav {
  width: 92%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.nav-left {
  padding-left: 10px;
}

.nav-logo {
  width: 55px;
  height: auto;
}

/* NAV LINKS */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-right a,
.dropdown > a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

/* Subrayado */
.nav-right a::after,
.dropdown > a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffcc33;
  transition: .3s;
}

.nav-right a:hover::after,
.dropdown > a:hover::after {
  width: 100%;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #153661;
  font-size: 16px;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #e8f1ff;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* ===========================================================
   GALERÍA
=========================================================== */
main {
  padding-top: 100px;
}

.galeria-section {
  padding: 50px 20px;
  text-align: center;
}

.galeria-section h1 {
  font-size: 34px;
  color: #153661;
  margin-bottom: 10px;
}

.galeria-descripcion {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.galeria-grid {
  width: 90%;
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.foto img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform .3s, box-shadow .3s;
}

.foto img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}


/* ===========================================================
   FOOTER
=========================================================== */
.footer {
  background: #153661;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  margin-top: 40px;
}

.footer-left img {
  height: 110px;
}

.footer-center {
  text-align: center;
}

.dev-name {
  font-size: 20px;
  font-weight: bold;
  color: #ffcc33;
  margin: 3px 0;
}

.footer-right {
  display: flex;
  gap: 15px;
}

.footer-right img {
  width: 32px;
  height: 32px;
  transition: .2s;
  cursor: pointer;
}

.footer-right img:hover {
  transform: scale(1.15);
}

@media(max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
