/* ==========================
   RESET Y FUENTES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8f9fa;
}

/* ==========================
   HEADER / MENÚ (PC)
========================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  width: 50px;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff8585;
}

/* Botón de perfil */
#auth-btn {
  padding: 8px 15px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
}

#auth-btn:hover {
  background-color: #ff8585;
}

/* Menú hamburguesa (oculto en PC) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  background: #000000;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.4s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==========================
   SECCIONES INFO (PC)
========================== */
.info-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  flex-wrap: wrap;
}

.quienes-somos.content,
.ultimas-actualizaciones.content {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: #efefef;
  border-radius: 10px;
  overflow: hidden;
  padding: 50px;
}

.text-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ff7373;
  text-align: left;
}

.text-container p,
.text-container ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000;
  text-align: left;
}

.text-container ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* ==========================
   CONTACTO (PC)
   (estilo visual acorde con auth-section)
========================== */
.contact-section,
.contact-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  text-align: left;
}

/* título centrado en contacto */
.contact-section h2,
.contact-container h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

/* form controls */
.contact-section label,
.contact-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-section input,
.contact-section textarea,
.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-section input:focus,
.contact-section textarea:focus,
.contact-container input:focus,
.contact-container textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* botón de enviar */
.contact-section button,
.contact-container button,
.auth-section button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-section button:hover,
.contact-container button:hover,
.auth-section button:hover {
  background-color: #0056b3;
}

/* mensaje pequeño debajo (si lo necesitas) */
.contact-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

/* ==========================
   LOGIN / REGISTRO (PC)
========================== */
.auth-section {
  max-width: 400px;
  margin: 50px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  text-align: left;
}

.auth-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #333;
}

.auth-section input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-section p {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.auth-section p a {
  color: #007bff;
  text-decoration: none;
}

.auth-section p a:hover {
  text-decoration: underline;
}

/* ==========================
   PERFIL (PC)
========================== */
#profile p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
}

#profile button {
  background-color: #ff4d4d;
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s;
}

#profile button:hover {
  background-color: #cc0000;
}

/* ==========================
   FOOTER (PC)
========================== */
.footer {
  background-color: #efefef;
  color: #000000;
  padding: 60px 20px 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #000000;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h3,
.footer-contact h3 {
  color: #ff7373;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ff7373;
}

.footer-contact p {
  margin: 8px 0;
  color: #000000;
}

.footer-contact i {
  color: #ff7373;
  margin-right: 8px;
}

.footer-contact a {
  color: #000000;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ff7373;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

/* ==========================
   RESPONSIVE (TABLET Y MÓVIL)
========================== */

/* Menú móvil y comportamiento del nav */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
  }

  nav ul.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  /* Info sections stack */
  .info-container {
    flex-direction: column;
    padding: 40px 20px;
  }

  .text-container h2 {
    font-size: 2rem;
  }

  .text-container p,
  .text-container ul {
    font-size: 1rem;
  }

  /* Contact responsive tweaks */
  .contact-section,
  .contact-container {
    margin: 40px 20px;
    padding: 30px 20px;
  }

  .contact-section h2,
  .contact-container h2 {
    font-size: 1.6rem;
  }

  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links ul li {
    margin: 5px 0;
  }
}

/* Pantallas pequeñas */
@media (max-width: 480px) {
  .auth-section {
    margin: 30px 20px;
    padding: 30px;
  }

  .auth-section h2 {
    font-size: 1.5rem;
  }

  .auth-section input,
  .auth-section button {
    font-size: 0.95rem;
    padding: 10px;
  }

  /* further reduce contact paddings on very small screens */
  .contact-section,
  .contact-container {
    margin: 30px 15px;
    padding: 25px 15px;
  }
}
