/* Reset y fuentes base */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-color: #f4f4f4;
  --text-color: #222;
  --card-color: #fff;
  --accent: #ff6f00;
  --accent-dark: #e65100;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Layout general*/
main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background-color: var(--card-color);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Navbar */
header {
  background-color: #222;
  color: white;
  padding: 1rem 2rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Logo */
.header-left .logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}

/* Navegación */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent, #00c6ff);
}

/* Botones a la derecha */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#toggle-theme,
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Esconde hamburguesa en escritorio */
.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-right {
    align-self: flex-end;
  }
}

/* Hero section */
.hero-section {
  text-align: center;
}

/* Tipografía */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Hero banner */
.hero-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.hero-banner:hover img {
  transform: scale(1.02);
}

.hero-text {
  position: absolute;
  bottom: 15px;
  left: 20px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.hero-text p {
  font-size: 1rem;
  margin: 0;
}

/* Galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.galeria img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.section-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--card-color);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.section-box h2 {
  margin-bottom: 1.5rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.close,
.nav {
  position: absolute;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 30px;
}

.nav {
  top: 50%;
  transform: translateY(-50%);
}

#prev {
  left: 30px;
}

#next {
  right: 30px;
}

/* Sección contacto */
#contacto {
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

#contacto h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.contacto-lista {
  list-style: none;
  padding-left: 0;
}

.contacto-lista li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contacto-lista a {
  color: var(--accent, #ff6f00);
  text-decoration: none;
  font-weight: 500;
}

.contacto-lista a:hover {
  text-decoration: underline;
  color: var(--accent-dark, #e65100);
}

/* Footer */
footer {
  background-color: #111;
  color: white;
  padding: 2rem;
  text-align: center;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

/* Modo oscuro */
body.dark {
  --bg-color: #121212;
  --text-color: #f2f2f2;
  --card-color: #1e1e1e;
}

/* Accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
}
