/* =========================
   RESET Y ESTILOS BASE
========================= */
body, header, main {
  margin: 0;
  padding: 0;
  background-color: #dad1d1;
}

@font-face {
  font-family: 'Glacial Indifference';
  src: url('https://raw.githubusercontent.com/google/fonts/main/ofl/glacialindifference/GlacialIndifference-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.container {
  max-width: 1450px;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

/* =========================
   TIPOGRAFÍAS
========================= */
h1 {
  font-family: 'Playfair Display', serif;
  font-weight: normal;
  font-size: 38px;
  margin-bottom: 10px;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.box h2 {
  font-family: 'Playfair Display', serif;
  color: #dcdff7;
  font-weight: 400;
  font-size: 30px;
  text-align: center;
  user-select: none;
}

/* =========================
   HEADER Y MENÚ
========================= */
.barra-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  gap: 15px;
}

.logo {
  font-family: 'Marcellus', serif;
  display: flex;
  align-items: center;
  color: rgb(0, 0, 0);
  gap: 10px;
  font-size: 18px;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  text-decoration: none;
  padding: 12px 20px;
  color: #000;
  border: 1px solid rgb(93, 55, 55);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  display: inline-block;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.menu a:hover {
  transform: scale(1.1);
  background-color: rgba(156, 82, 82, 0.46);
  border-color: #ab2a2a;
}

/* Botón hamburguesa */
.hamburguesa {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  z-index: 3;
}

/* =========================
   SECCIONES
========================= */
.section1, .section2 {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 25px;
  margin: 0 auto;
  max-width: 1200px; 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
}

.section1 {
  background-image: url("../public/administracion_ruhe.jpg");
}

.section2 {
  background-image: url("../public/administracion_ruhe2.jpg");
}

/* =========================
   CARDS
========================= */
.card {
  flex: 1 1 300px;          /* ocupa espacio flexible, mínimo 300px */
  max-width: 350px; 
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 20px;
  border-radius: 10px;
}

.card p {
  font-family: 'Roboto', sans-serif;
  text-align: center;
}

.card.white {
  background: rgba(255, 255, 255, 0.812);
  color: #000;
  text-align: center;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 35px;
  letter-spacing: 2px;
  font-weight: normal;
  margin-bottom: 15px;
}

.card.white h3 {
  color: #2c0dc6;
}

.card:not(.white) h3 {
  color: #c7a6ff;
}

.card ul {
  padding-left: 20px;
}

.card ul li {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 8px;
}

/* Botón de contacto */
.contact-btn {
  font-family: 'Arimo', sans-serif;
  text-decoration: none;
  display: inline-block;
  padding: 18px 20px;
  background-color: #2e5984;
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-btn:hover {
  transform: scale(1.1);
  background-color: #4c5aa6aa;
  color: #040000;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 10px 20px;
  text-align: left;
}

.footer-icons {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
}

.footer-icons .icon-link img {
  width: 30px;
  height: 30px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.footer-icons .icon-link:hover img {
  filter: none;
  transform: scale(1.1);
}

/* =========================
   RESPONSIVE
========================= */

/* Tablets y móviles grandes */
@media (max-width: 1024px) {
  .section1, .section2 {
    margin: 20px;
    gap: 30px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction:row;
    gap: 15px;
    justify-content: center;
    width: 100%;
    
  }
  .menu.show {
    display: flex;
  }
  .menu a {
    padding: 10px;
    border-radius: 8px;
    display: block;
    text-align: center;
  }
  .hamburguesa {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
  }

  .section1, .section2 {
    margin: 10px;
    padding: 15px;
    gap: 15px;
  }

  .card {
    width: 100%;
    padding: 15px;
    font-size: 14px;
  }

  .contact-btn {
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
  }

  h1 {
    font-size: 28px;
  }

  h3 {
    font-size: 16px;
  }
}
