/* =========================================================
   1. BASE / RESET
   ========================================================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f6f6f6;
  color: #222;
}

a {
  text-decoration: none;
  color: #0066cc;
}

button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* =========================================================
   2. HEADER / BUSCADOR / FOOTER
   ========================================================= */

/* HEADER principal oscuro */
.header {
  position: relative;
  background: #fff;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .6px;
}

.brand img {
  max-width: 250px;
  height: auto;
}

/* Links superiores (login, etc.) */
.top-links {
  position: absolute;
  right: 24px;
  top: 12px;
}
.top-links a {
  color: #fff;
  margin-left: 12px;
  text-decoration: none;
  font-size: .95rem;
}

/* Buscador */
.search-form {
  max-width: 800px;
  flex: 1;
  margin: 0 24px;
}

.search-input {
  display: flex;
  gap: 8px;
}

.search-input input[type="search"] {
  width: 90%;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

.search-input button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: #37527a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-input button:hover {
  background: #6d7072;
}

/* Header responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .search-form {
    margin: 0;
    max-width: 100%;
  }

  .search-input {
    flex-direction: column;
  }

  .search-input button {
    width: 100%;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: #666;
  font-size: 0.9rem;
}

/* =========================================================
   3. HERO / BANNERS
   ========================================================= */
.hero-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.hero .hero-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 18px 28px;
  max-width: 900px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

@media (max-width: 900px) {
  .hero { height: 260px; }
}

/* Secondary banners row */
.banner-row {
  display: flex;
  gap: 12px;
  padding: 12px 24px;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}
.banner-row a img {
  max-height: 120px;
  border-radius: 8px;
}

/* =========================================================
   4. GALERÍA / MASONRY
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 16px;
}

.galeria {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width:1200px) { .galeria { column-count: 3; } }
@media (max-width:900px)  { .galeria { column-count: 2; } }
@media (max-width:600px)  { .galeria { column-count: 1; } }

.foto {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  color:#fff;
  cursor: pointer;
}
.foto img {
  width: 100%;
  display: block;
  transition: transform .35s ease;
}
.foto:hover img {
  transform: scale(1.03);
}

.foto-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity .25s;
}
.foto:hover .foto-info { opacity: 1; }
.foto-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
}
.foto-info small { color: #ddd; }

/* =========================================================
   5. FORMULARIOS
   ========================================================= */
form {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input[type=text],
input[type=email],
input[type=password],
input[type=file],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

button.primary { background: #0066cc; color: white; }
button.success { background: #009933; color: white; }

.error { color: red; text-align: center; }
.success-msg {
  text-align: center;
  color: green;
  margin-bottom: 10px;
}

/* =========================================================
   6. DASHBOARD
   ========================================================= */
.dashboard-header {
  background: #fff;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard-main {
  padding: 20px;
}
.submenu {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.submenu a {
  color: #0066cc;
  font-weight: bold;
}
.submenu a:hover { text-decoration: underline; }

/* =========================================================
   7. UTILIDADES
   ========================================================= */
.kv { font-weight: 600; color:#ffd700; }

.no-results {
  text-align:center;
  padding:40px;
  color:#666;
  background:#fff;
  border-radius:8px;
}

/* ============================
   FOOTER ESTILIZADO
   ============================ */
.footer-instagram {
    margin-top: 60px;
    background: #fff;
    padding: 30px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #333;
    font-size: 0.95rem;
}

.footer-instagram .footer-content {
    max-width: 900px;
    margin: auto;
}

.footer-instagram .copy {
    margin-bottom: 12px;
    color: #666;
}

.footer-links a {
    margin: 0 10px;
    color: #0077cc;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 22px;
}

.social-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .25s ease, opacity .25s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Facebook */
.social-icon.facebook {
    color: #1877f2;
}
.social-icon.facebook:hover {
    transform: scale(1.15);
}

/* Instagram */
.social-icon.instagram {
    color: #e43567;
}
.social-icon.instagram:hover {
    transform: scale(1.15);
}

