/* 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;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo {
  height: 150px;
  width: auto;
}

.logo-title h1, .logo-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.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 el contenedor */
#contacto {
  max-width: 1300px;
  margin: -60px auto 80px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.contacto-container {
  width: 100%;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Columna de tarjetas (izquierda) y mapa (derecha) */
  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: 400px;
  width: 100%;
}

.map-wrapper iframe {
  border: 0;
}

/* Tarjeta del Formulario (Redirección a Google Forms Segura) */
.formulario-card.secure-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding: 40px;
}

.formulario-card.secure-card h4 {
  font-size: 1.6rem;
  color: #0b1c3d;
  margin-bottom: 25px; /* Spacing para separar del botón */
  align-self: flex-start;
  text-align: left;
  width: 100%;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

/* Caja de contenido de la redirección segura */
.secure-contact-box {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.secure-icon {
  font-size: 2.8rem; /* Tamaño más moderado */
  color: #2563eb;
  margin-bottom: 15px;
  animation: pulse 2s infinite ease-in-out;
}

.secure-contact-box h5 {
  font-size: 1.2rem;
  color: #0b1c3d;
  margin-bottom: 10px;
  font-weight: 600;
}

.secure-contact-box .secure-desc {
  font-size: 0.95rem; /* Más compacto y legible */
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 15px;
  max-width: 450px; /* Evita líneas demasiado largas */
}

.secure-contact-box .secure-instruction {
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Botón de envío estilizado para redirección */
.btn-submit {
  background: linear-gradient(135deg, #2563eb 0%, #1e4db7 100%);
  color: white;
  padding: 14px 28px; /* Más compacto */
  border: none;
  border-radius: 12px;
  font-size: 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;
  text-decoration: none;
  width: 100%;
  max-width: 320px; /* Más corto */
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.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);
}

/* Animaciones */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
    color: #1e4db7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 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) {
  .info-card, .formulario-card {
    padding: 25px;
  }
  
  .btn-submit {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* 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;
  }
}
