* {
    margin: 0;
}

body {
    font-family: "Albert Sans", sans-serif;;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: #4979a8;
}

header.scrolled {
  background-color: #ffffff; /* el color que aparece al bajar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 290px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo {
    width: 200px;
  }
}

.menu-sup {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

/* --- Enlaces del menú --- */
.menu-btn-sup {
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
}

/* --- Color de enlaces cuando se aplica el scroll --- */
header.scrolled .menu-btn-sup {
  color: #000000;
}

.menu-btn-sup:hover {
  color: #ffcc00;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  min-width: 160px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.dropdown-content a {
  color: #e0e0e0;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/*Botón de cambiar idioma*/
.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 20px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

header.scrolled .lang-btn {
  border-color: #000;
  color: #000;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
}

/* --- MENÚ HAMBURGUESA PARA MÓVILES --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: white;
}

header.scrolled .hamburger {
    color: black;
}

@media (max-width: 900px) {

    .menu-sup {
        position: fixed;
        top: 70px;
        right: 0;
        background: #4979a8;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 20px 0;
        display: none;
        text-align: center;
    }

    header.scrolled .menu-sup {
        background: #ffffff;
    }

    .hamburger {
        display: block;
    }

    .menu-sup.active {
        display: flex;
    }

    .menu-sup.active {
      display: flex;
    }

    /* Dropdown dentro del menú móvil */
    .dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        margin: 0 auto;
        background: #d4d4d4;
        border-radius: 8px;
        padding: 10px 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .dropdown-content a {
        color: #222 !important;
        padding: 12px;
        font-weight: 500;
    }

    .menu-btn-sup {
        color: white;
    }
    
    header.scrolled .menu-btn-sup {
        color: black;
    }
}

/* Contenedor general */
.contacto-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* Información de contacto */
.info-contacto {
  background-color: #f4f4f4;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  text-align: center;
}

.info-contacto h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #1a1a1a;
}

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-items .item {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-size: 1.1rem;
}

.contacto-items .item i {
  font-size: 1.8rem;
  color: #00264d;
}

.contacto-items .item p {
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Formulario + Mapa */
.form-mapa {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: stretch;
}

.formulario {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.formulario h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #00264d;
}

.formulario form {
  display: flex;
  flex-direction: column;
}

.loader {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.title {
  font-size: 28px;
  color: royalblue;
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.title::before,.title::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  background-color: #4979a8;
}

.title::before {
  width: 18px;
  height: 18px;
  background-color: #00264d;
}

.title::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.btn-enviar {
  display: inline-block;
  background: #4979a8;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enviar:hover {
  background: #00264d;
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
  transition: opacity 0.4s ease;
}

.form-status.success {
  color: #1a7f37;
}

.form-status.error {
  color: #b42318;
}

.form-status.hidden {
  opacity: 0;
}


/* Mapa */
.mapa {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
}

.mapa inframe {
  flex: 1;
  height: auto;
}

@media (max-width: 768px) {
  .form-mapa {
    flex-direction: column;
  }

  .mapa inframe {
    min-height: 300px;
  }
}

/* Botón Contacto */
.boton-flotante {
  position: fixed;
  bottom: 25px;
  right: 20px;
  background-color: #4979a8;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 30px;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.boton-flotante:hover {
  background-color: #00264d;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .boton-flotante {
    bottom: 17px;
    right: 45px;
    font-size: 30px;
    padding: 10px 16px;
  }
}

/* Footer */
.footer-mejorado {
    background-color: #1d1d1d;
    color: #fff;
    padding: 60px 20px 20px;
    font-size: 0.95rem;
    text-align: left;
}

.footer-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-col h3, .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #f4f4f4;
}

.footer-col p, .footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a:hover, .footer-col a:hover {
    color: #0095a8;
}

.iconos-redes a {
    font-size: 1.3rem;
    margin-right: 10px;
    color: #ccc;
    transition: color 0.3s ease;
}

.iconos-redes a:hover {
    color: #00bcd4;
}

.footer-copy {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
}