/* Reset básico: Elimina márgenes y rellenos predeterminados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f5f7fa;
}

a {
  text-decoration: none;
}

/* Header profesional: Estilo de la barra de navegación superior */
header {
  background-color: #0b1c3d;
  color: #fff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
  max-width: 1600px; /* Ampliado para dar mÃ¡s espacio a los lados */
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px; /* MÃ¡s espacio a los lados */
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0; /* Evita que el logo y el tÃ­tulo se encojan */
}

.logo {
  height: 150px;
  width: auto;
}

.logo-title h1, .logo-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap; /* Fuerza a que estÃ© en una sola lÃ­nea siempre */
}

.nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav ul li a {
  color: white;
  font-weight: 700;
  padding: 8px 12px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav ul li a:hover {
  background-color: #2563eb;
  border-radius: 6px;
}

.nav .btn-socio {
  background-color: #2563eb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.3s;
}

.nav .btn-socio:hover {
  background-color: #1e4db7;
}

/* Hero: Sección de cabecera con imagen promocional */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../img/CONTACTO_FONDO.JPG') center/cover no-repeat;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 61, 0.6);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/* Contacto: Estilos para la sección de información y formulario */
#contacto {
  max-width: 1300px;
  margin: -60px auto 80px; /* Overlap with hero slightly for a modern look */
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.contacto-container {
  width: 100%;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: stretch;
}

/* Tarjetas de Información */
.contacto-info-map {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-card, .formulario-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card h3 {
  font-size: 1.8rem;
  color: #0b1c3d;
  margin-bottom: 20px;
  text-align: left;
}

.info-card p {
  color: #4b5563;
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
  color: #374151;
}

.contact-details i {
  color: #2563eb;
  font-size: 1.2rem;
  margin-top: 4px;
  width: 20px;
  text-align: center;
}

.contact-details a {
  color: #2563eb;
  font-weight: 600;
  transition: 0.3s;
}

.contact-details a:hover {
  text-decoration: underline;
}

.map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 300px;
}

/* Formulario Card */
.formulario-card {
  display: flex;
  flex-direction: column;
}

.formulario-card h4 {
  font-size: 1.8rem;
  color: #0b1c3d;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
  background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit {
  background: linear-gradient(135deg, #2563eb 0%, #1e4db7 100%);
  color: white;
  padding: 16px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #1e4db7 0%, #173d91 100%);
}

.btn-submit i {
  transition: 0.3s;
}

.btn-submit:hover i {
  transform: translate(5px, -5px);
}

/* Status Message */
.form-status {
  display: none;
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.form-status.active {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.status-content i {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 20px;
}

.status-content p {
  font-size: 1.2rem;
  color: #0b1c3d;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer: Pie de página de la sección de contacto */
footer {
  background-color: #0b1c3d;
  color: #cbd5f5;
  padding: 50px 20px;
  text-align: center;
}

footer a {
  color: #2563eb;
}

.social-links {
  margin-top: 20px;
}

.social-links a { 
  color: #ffffff;
  margin: 0 15px;
  font-size: 24px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #2563eb;
  transform: translateY(-3px);
}

/* Responsive: Ajustes para dispositivos móviles */
@media(max-width: 1024px) {
  #contacto {
    margin-top: -30px;
  }
  
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    height: 100px;
  }

  .hero h2 {
    font-size: 2rem;
  }
}

@media(max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .info-card, .formulario-card {
    padding: 25px;
  }
}

/* Mobile en horizontal: Ajustes para vista apaisada */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 320px;
    padding: 20px 20px;
  }

  .logo {
    height: 80px;
  }
}


/* Utilidades adicionales (movidas de estilos inline en HTML) */
.honeypot {
  display: none;
}

#form-error {
  display: none;
  color: #ef4444;
}

#form-error .fa-exclamation-circle {
  color: #ef4444;
}

.btn-retry {
  margin-top: 20px;
  padding: 10px 20px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.map-wrapper iframe {
  border: 0;
}
