/* =======================================================
   ESTRUCTURA PRINCIPAL Y FUENTES 
========================================================== */

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

body {
  font-family: Georgia, 'Times New Roman', Times, serif; 
  margin: 0;
  background-color: #f2f2f2; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =======================================================
   ESTILOS DE ENCABEZADO Y NAVEGACIÓN (DESKTOP)
   (Idénticos a home.css)
========================================================== */

/* ENCABEZADO */
.barra-superior {
  background-color: #113b64; 
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  position: relative; /* Para el botón de hamburguesa */
  border-bottom: 4px solid #f5b301;
}

.logo-mini {
  display: block;
}

.logo-mini img {
  width: 50px; 
  height: 50px;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.barra-superior h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
  text-align: left;
  font-weight: 900;
}

.barra-superior h1 span {
  display: block;
  font-size: 0.85em;
  color: #f5b301;
  font-weight: 700;
  text-align: center; /* Centrado */
}

/* MENÚ (DESKTOP) */
.menu {
  display: block; 
  position: static;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: #e8e8e8;
  padding: 20px 0;
  margin: 0;
  flex-direction: row; /* Horizontalidad en desktop */
  gap: 20px; 
}

.menu li {
  margin: 0;
  font-weight: 700;
  border: none;
}

/* Estado normal de los botones */
.menu a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border-radius: 5px;
  background-color: #2a5a8a; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.15); 
  display: inline-block;  
  width: 180px;           
  text-align: center;     
  padding: 8px 0;         
  box-sizing: border-box; 
}

/* Botón al pasar el cursor (Hover) */
.menu a:hover {
  color: #113b64;
  background-color: #f5b301;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* Botón "activo" (en qué página estás) para Desktop */
.menu a.active {
  background-color: #c3c1bb; 
  color: #113b64;
  box-shadow: none; 
}


/* --- Botón Hamburguesa (Oculto en Desktop) --- */
.hamburger-toggle { display: none; }
.hamburger-button { display: none; }


/* BARRA DE TÍTULO "CONTACTO" (Idéntica a home.css) */
.frase-conocenos {
  text-align: left;
  background-color: #3D5F85;
}

.frase-conocenos h2 {
  color: white;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0px;
  box-sizing: border-box;
  
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  font-size: 26px;
  

}

/* =======================================================
   CONTENIDO PRINCIPAL "CONTACTO" (Estilos propios)
========================================================== */

main {
  flex-grow: 1; 
  width: 90%;
  max-width: 1200px; /* Límite para consistencia */
  margin: 20px auto; /* Margen superior/inferior añadido */
  padding: 20px; /* Padding interior */
  background-color: white; /* Fondo blanco para el contenido */
  box-sizing: border-box;
  
  /* Añadido para consistencia con home.css */
  border-radius: 10px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

.contact-container {
  display: flex;
  flex-wrap: wrap; /* Esto hace que se apilen en móvil */
  gap: 40px; /* Espacio entre las columnas de info y mapa */
  font-family: Arial, Helvetica, sans-serif; /* Fuente legible para contenido */
}

.contact-info, .map-container {
  flex: 1; /* Ambas columnas intentan ocupar el mismo espacio */
  min-width: 300px; /* Ancho mínimo antes de apilarse */
}

/* Títulos "¡Ponte en Contacto!" y "Nuestra Ubicación" */
.contact-info h3, .map-container h3 {
  color: #113b64;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 0;
  border-bottom: 3px solid #f5b301;
  padding-bottom: 5px;
  display: inline-block;
}

.contact-info > p { /* El párrafo de introducción */
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  padding-left: 35px; /* Espacio para el icono */
}

.info-item .icon {
  font-size: 20px;
  margin-right: 10px;
  color: #113b64;
  position: absolute;
  left: 0;
  top: 5px; /* Alineación vertical del icono */
}

.info-item strong {
  color: #113b64;
  display: block;
  margin-bottom: 5px;
  font-weight: 900;
}

.info-item p {
  margin: 0;
  color: #555;
  font-weight: 600;
}

.info-item a {
  display: block;
  color: #113b64;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #f5b301;
}

/* Estilos del Mapa */
.map-container iframe {
  width: 100%; /* Ancho completo del contenedor */
  height: 400px; /* Altura fija */
  border: 3px solid #113b64;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos de WhatsApp (propios de esta página) */
.whatsapp-link {
  background-color: #25d366; /* Verde de WhatsApp */
  color: white !important; /* Texto blanco, el !important anula el estilo de .info-item a */
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  margin-top: 5px; /* Espacio debajo del título */
  display: inline-block !important; 
  width: auto !important; /* Ajusta el ancho */
}

.whatsapp-link:hover {
  background-color: #128c7e; /* Verde oscuro al pasar el cursor */
  color: white !important;
}

.whatsapp-item .icon {
  font-size: 24px;
  color: #25d366; /* Color verde para el icono de chat */
  top: 0;
}

/* =======================================================
   FOOTER Y MENSAJE FINAL (Idénticos a home.css)
========================================================== */

.mensaje-final {
  text-align: center;
  color: #113b64;
  font-weight: 700;
  margin: 40px auto;
  padding: 0 10%;
  font-size: 18px;
  background: none; 
}

.frase-final {
  text-align: center;
  background-color: #113b64;
  color: white;
  font-weight: 800;
  padding: 10px 0; /* Menos alto */
  font-size: 22px;
}
div1{
  background-color: #f5b301;
  color: #113b64;
  padding: 5px 40px; /* Menos alto */
  border-radius: 8px;
  display: inline-block;
  font-size: 20px;
  margin-top: 0px;
  font-weight: 900;
  transition: background-color 0.2s;
}
div1:hover {
  background-color: #e8a800;
}


/* ============================================================
   ESTILOS PARA MÓVIL (MEDIA QUERY)
============================================================
*/
@media (max-width: 768px) {

  /* --- ENCABEZADO Y MENÚ (Idéntico a home.css) --- */
  
  .barra-superior { padding: 20px; justify-content: space-between; }
  
  /* Botón Hamburguesa */
  .hamburger-button { 
    display: block; 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none; 
    border: none; 
    color: #f5b301; 
    font-size: 32px; 
    cursor: pointer; 
    text-shadow: 0 0 5px rgba(245, 179, 1, 0.5); 
  }
  
/* --- MENÚ: Despliegue Suave (ALTURA AUTOMÁTICA CORREGIDA) --- */
  .menu {
    display: block; 
    position: absolute;
    top: 100px; 
    left: auto;
    right: 0; 
    width: 60%; 
    height: auto; /* 1. Altura automática */
    max-height: none; /* 2. Sin altura máxima */
    
    background-color: #113b64; 
    z-index: 1000; 
    border-radius:12px; 
    border-left: 2px solid #f5b301; 
    box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.8); 
    
    transform: translateX(100%); 
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out; 
    
    overflow-y: auto; 
    overflow-x: hidden;
  }
  
  .hamburger-toggle:checked ~ .menu {
    display: block !important; 
    transform: translateX(0); 
    visibility: visible;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
    background-color: transparent;
  }

  .menu li {
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(245, 179, 1, 0.3); 
  }

  .menu li:last-child {
      border-bottom: none;
  }

  .menu a {
    background-color: transparent; 
    color: white; 
    text-align: left; 
    display: block;
    width: 100%;
    padding: 25px 15px; 
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box; 
    transition: background-color 0.15s ease, color 0.15s ease; 
  }

  .menu a:hover {
    background-color: #f5b301; 
    color: #113b64;
    box-shadow: none;
  }

  .menu a.active {
    background-color: #f5b301; 
    color: #113b64;
    font-weight: 900;
  }
  
  .frase-conocenos h2 {
    font-size: 18px; 
    padding: 10px 20px; 
    width: auto; 
    max-width: none;
    margin: 0;
  }

  /* --- CONTENIDO "CONTACTO" MÓVIL (Estilos propios) --- */
  main {
    width: 100%; 
    padding: 20px 15px; /* Padding para el contenido de contacto */
    margin: 0;
    display: block; 
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 0; 
  }

  .contact-info h3, .map-container h3 {
    font-size: 18px; /* Títulos más pequeños en móvil */
  }

  .info-item {
    font-size: 14px;
    padding-left: 30px; /* Menos padding para el icono */
  }
  
  .info-item .icon {
    font-size: 16px;
    top: 3px;
  }

  .map-container iframe {
    height: 300px; /* Mapa más bajo en móvil */
  }
  
  .whatsapp-link {
    padding: 8px 15px;
    font-size: 16px;
  }
  /* --- FIN DE CONTENIDO "CONTACTO" MÓVIL --- */


  /* --- FOOTER MÓVIL  --- */
  .mensaje-final { 
    font-size: 8px; 
    padding: 0 15px; 
    margin: 10px auto; 
    background-color: transparent; 
  }
  .frase-final { 
    font-size: 18px; 
    padding: 15px; 
    line-height: 1.4;
  }
  div1{ 
    padding: 6px 25px; 
    font-size: 18px;
    margin-top: 0px;
    font-weight: 900;
  }

} /* --- FIN DEL @media query --- */