/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #333;
  background: #fff;
  position: relative;
}

/* HEADER (reutilizable) */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: white;
  padding: 5px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo img {
  height: 80px;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  margin-top: 20px;
}

.logo img:hover {
  opacity: 0.8;
}

/* Botón hamburguesa - OCULTO en desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #001f54;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Botón cerrar menú (X) - SOLO visible en móvil cuando el menú está abierto */
.close-menu {
  display: none;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #001f54;
  text-decoration: underline;
}

/* HERO CONTACTO */
.hero-contacto {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0 80px 80px 80px;
  color: white;
  position: relative;
}

.hero-contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-contacto .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-contacto .hero-label {
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
}

.hero-contacto h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
}

/* SECCIÓN CONTACTO */
.contact-section {
  padding: 100px 80px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #555;
}

.contact-form-container .form-box {
  background: #f6f6f6;
  padding: 40px;
  border-radius: 20px;
}

.contact-form-container h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-form-container p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #666;
}

.contact-form-container label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: none;
  border-bottom: 1px solid #999;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.contact-form-container textarea {
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  background: #001f54;
  color: white;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #003080;
}

/* Footer */
footer {
  background: #001f54;
  color: white;
  padding: 60px 80px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-column li.Dirección,
.footer-column li.Dirección + li {
  margin-bottom: 2px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  font-size: 18px;
  transition: opacity 0.3s;
  display: inline-block;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Header móvil con hamburguesa */
  header {
    flex-direction: row;
    justify-content: space-between;
    width: 95%;
    padding: 10px 20px;
    top: 10px;
  }

  .logo img {
    height: 50px;
  }

  /* MOSTRAR botón hamburguesa SOLO en móvil */
  .hamburger {
    display: flex;
  }

  /* Botón cerrar (X) visible en móvil */
  .close-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .close-menu span {
    font-size: 45px;
    color: #001f54;
    line-height: 1;
    font-weight: 300;
  }

  .close-menu:hover span {
    color: #003d8f;
  }

  /* Navegación móvil */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    background: white;
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    gap: 0;
  }

  nav.active {
    right: 0;
  }

  nav a {
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .contact-section {
    padding: 60px 30px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-contacto {
    padding: 0 30px 60px 30px;
    min-height: 100vh;
  }

  .hero-contacto h1 {
    font-size: 36px;
  }

  footer {
    padding: 40px 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ==================== SELECTOR DE IDIOMA DROPDOWN ==================== */

.language-dropdown {
    position: relative;
    margin-left: 20px;
}

.lang-toggle {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.lang-toggle:hover {
    background: #e8e8e8;
    border-color: #001f54;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border-radius: 12px;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #001f54;
    color: white;
    font-weight: 600;
}

/* Móvil */
@media (max-width: 768px) {
    header {
        display: flex;
        align-items: center;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .language-dropdown {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .lang-toggle {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .hamburger {
        order: 3;
        flex-shrink: 0;
    }
}