/*
 * Luigi's Centro Familiar - site stylesheet.
 * Replaces the old style.css. Same images and palette:
 *   brown #7A5405, gold #E3AD25 / #EAB325, blue #37607D,
 *   beige #eee9df / #c6b79b, line grey #d3d7e3.
 */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px;
  background: #37607D;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 14px;
  color: #333;
}
a { color: #7A5405; text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; }

/* ---------- Page container: everything is centered inside this ---------- */
.site {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .45);
}

/* ---------- Header photo + nav ---------- */
.hero {
  position: relative;
  height: 350px;
  background: url(../images/luigis.jpg) center top / cover no-repeat;
}
.nav {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  white-space: nowrap;
}
.nav-cap { width: 8px; height: 45px; flex: 0 0 8px; }
.nav-cap-left  { background: url(../images/nav-left.png) no-repeat; }
.nav-cap-right { background: url(../images/nav-right.png) no-repeat; }
.nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  height: 45px;
  list-style: none;
  background: url(../images/nav-bg.jpg) repeat-x;
}
.nav li + li::before {
  content: "|";
  color: #999;
}
.nav a {
  display: inline-block;
  padding: 0 18px;
  font: bold 13px Verdana, Arial, Helvetica, sans-serif;
  color: #000;
}
.nav a:hover, .nav a.active {
  color: #EAB325;
  text-decoration: none;
}

/* ---------- Content row: main column + sidebar ---------- */
.content {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 33px 40px 20px;
  background: url(../images/division.jpg) repeat-x top;
}
.main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 654px;
  min-height: 270px;
}
.sidebar {
  flex: 0 0 240px;
  padding-top: 4px;
}

.main-title {
  height: 40px;
  padding: 9px 0 0 35px;
  background: url(../images/main-title.png) left top no-repeat;
  color: #7A5405;
  font-size: 16px;
  font-weight: bold;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 3px solid #d3d7e3;
  color: #7A5405;
  font-size: 16px;
  font-weight: bold;
}
.page-title::before {
  content: "";
  width: 8px;
  height: 11px;
  background: url(../images/Azul.gif) no-repeat;
}
.prose { text-align: justify; line-height: 1.55; }
.prose img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.sidebar-title {
  margin: 0 0 4px;
  padding: 0 0 2px 10px;
  border-bottom: 2px solid #d3d7e3;
  color: #7A5405;
  font-size: 14px;
  font-weight: bold;
}

/* Random restaurants in the sidebar */
.mini-list { list-style: none; margin: 0; padding: 12px 0 0; }
.mini-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.mini-list img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.mini-list a { display: block; font-size: 13px; font-weight: bold; }
.mini-list span { font-size: 12px; color: #555; }

/* ---------- Plaza de comidas ---------- */
.r-intro { margin: 0 0 16px; color: #555; font-size: 13px; }
.r-list { display: flex; flex-direction: column; gap: 14px; }
.r-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
  background: #eee9df;
  border: 1px solid #c6b79b;
  border-left: 4px solid #E3AD25;
  border-radius: 6px;
}
.r-logo {
  flex: 0 0 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #c6b79b;
  border-radius: 6px;
  overflow: hidden;
}
.r-logo img { max-width: 108px; max-height: 108px; object-fit: contain; }
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  background: #E3AD25;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
}
.r-logo .logo-placeholder { width: 80px; height: 80px; font-size: 36px; }
.r-empty { padding: 20px; background: #eee9df; border-radius: 6px; color: #7A5405; }
.r-body { flex: 1; min-width: 0; }
.r-name { margin: 0; color: #7A5405; font-size: 17px; line-height: 1.2; }
.r-slogan {
  margin: 3px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d3d7e3;
  color: #37607D;
  font-style: italic;
  font-size: 13px;
}
.r-desc { font-size: 13px; line-height: 1.5; }
.r-desc p { margin: 0 0 6px; }
.r-group { margin: 8px 0 2px; color: #7A5405; font-size: 12px; letter-spacing: .5px; }
.r-items { margin: 0 0 4px; padding-left: 18px; }
.r-items-cols { columns: 2; column-gap: 24px; }
.r-items-cols li { break-inside: avoid; }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #c6b79b;
  border-radius: 14px;
  color: #333;
  font-size: 13px;
}
.r-btn:hover { border-color: #7A5405; color: #7A5405; text-decoration: none; }
.r-btn img { height: 16px; width: auto; }
.ads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 15px;
}
.ads img { max-width: 100%; height: auto; }

/* ---------- Contáctenos ---------- */
.contact-row { display: flex; gap: 24px; align-items: flex-start; }
.contact-photo { flex: 0 1 300px; }
.contact-photo img { width: 100%; height: auto; border-radius: 6px; display: block; }
.contact-form { flex: 1; min-width: 220px; }

.form { display: flex; flex-direction: column; gap: 10px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #7A5405;
  font-size: 13px;
  font-weight: bold;
}
.form input, .form textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #c6b79b;
  border-radius: 4px;
  font: 14px "Trebuchet MS", Verdana, sans-serif;
  color: #333;
}
.form input:focus, .form textarea:focus { outline: 2px solid #E3AD25; border-color: #E3AD25; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row input { width: 90px; }
.form button {
  align-self: flex-end;
  padding: 7px 24px;
  background: #7A5405;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font: bold 14px "Trebuchet MS", Verdana, sans-serif;
  cursor: pointer;
}
.form button:hover { background: #E3AD25; }
.form-alert {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fbeaea;
  border-left: 4px solid #B00000;
  color: #B00000;
  font-weight: bold;
}
.thanks { flex: 1; color: #888; font-size: 18px; }

.contact-list { list-style: none; margin: 10px 0 18px; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid #eee9df;
  font-size: 13px;
  line-height: 1.35;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list img { flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; }
.contact-list a { word-break: break-all; }
.map { padding-top: 10px; font-size: 12px; }
.map iframe { display: block; width: 100%; height: 200px; border: 0; margin-bottom: 4px; }

/* ---------- Photo strip ---------- */
.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  min-height: 120px;
  margin: 0 auto;
  padding: 6px 30px;
  background: url(../images/boxfooter.png) center / 100% 100% no-repeat;
}
.strip-cta img { display: block; }
.strip-gallery h2 {
  margin: 0 0 4px;
  text-align: center;
  color: #7A5405;
  font-size: 14px;
}
.strip-photos { display: flex; justify-content: center; gap: 14px; }
.strip-photos img { display: block; border: 2px solid #7A5405; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 900px;
  margin: 16px auto 0;
  padding: 18px 0 20px;
  background: url(../images/footerbar.jpg) repeat-x top;
}
.social-label { color: #7A5405; font-weight: bold; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border: 1px solid #c6b79b;
  border-radius: 18px;
  color: #7A5405;
  font-size: 13px;
}
.social-link:hover { background: #7A5405; border-color: #7A5405; color: #fff; text-decoration: none; }

/* ---------- Thickbox popup pages ---------- */
body.popup { padding: 16px; background: #fff; }

/* ---------- Smaller screens ---------- */
@media (max-width: 820px) {
  body { padding: 0; }
  .site { border-radius: 0; }
  .hero { height: 230px; }
  .nav { left: 0; right: 0; bottom: 0; transform: none; white-space: normal; }
  .nav-cap { display: none; }
  .nav ul { flex: 1; justify-content: center; flex-wrap: wrap; height: auto; padding: 6px; background-size: auto 100%; }
  .nav li + li::before { display: none; }
  .nav a { padding: 4px 10px; font-size: 12px; }
  .content { flex-direction: column; padding: 20px 16px; }
  .main { max-width: none; }
  .sidebar { flex-basis: auto; }
  .contact-row { flex-direction: column; }
  .contact-photo { flex-basis: auto; max-width: 425px; }
  .strip { flex-direction: column; gap: 10px; background: #eee9df; padding: 14px 16px; }
  .strip-photos img { max-width: 28vw; height: auto; }
  .r-card { flex-direction: column; align-items: stretch; }
  .r-logo { align-self: center; }
  .r-body { width: 100%; }
  .r-items-cols { columns: 1; }
  .footer { flex-wrap: wrap; }
}
