/*
Theme Name: Casa Esmeralda
Author: Casa Esmeralda
Description: Páginas de la inmobiliaria. Las fichas de inmuebles van en el plugin Propiedades.
Version: 1.0.0
Text Domain: casa-esmeralda
*/

:root {
  --ink: #333;
  --muted: #666;
  --teal: #3aa89e;
  --bar: #b7ddd6;
  --line: #e6e6e6;
  --max: 1100px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: Heebo, Arial, sans-serif; line-height: 1.55; background: #fff; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.top img { height: 72px; width: auto; }
.top-meta { margin-left: auto; text-align: right; font-size: 13px; }
.top-meta a { text-decoration: none; }
.top-meta p { margin: 0 0 4px; }
.social { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--teal); text-decoration: none; margin-left: 6px; }
.bar { background: var(--bar); }
.bar .wrap { display: flex; align-items: center; }
.menu { display: flex; flex: 1; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a, .menu button { display: inline-flex; align-items: center; height: 48px; margin: 0; padding: 0 14px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; appearance: none; }
.menu > li > button::after { content: " ▾"; font-size: 11px; }
.menu .current > a, .menu .current > button { color: var(--teal); font-weight: 700; }
.menu .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); padding: 6px 0; z-index: 5; }
.menu li:hover .sub, .menu li:focus-within .sub { display: block; }
.menu .sub a { display: block; height: auto; color: var(--ink); padding: 8px 14px; }
.menu .sub a:hover { background: var(--bar); }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; }
.center { text-align: center; }
.kicker { color: var(--teal); letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.muted { color: var(--muted); }
.grid-3, .grid-2 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card img, .shot { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero img { width: 100%; height: 420px; object-fit: cover; }
.hero { position: relative; }
.dots { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.dots button { width: 14px; height: 14px; border-radius: 50%; border: 0; background: #fff; }
.dots .on { background: #73c2ba; }
.btn { display: inline-flex; min-height: 44px; align-items: center; background: var(--teal); color: #fff; text-decoration: none; padding: 0 18px; border: 0; cursor: pointer; }
.section { padding: 48px 0; }
label { display: block; margin: 0 0 12px; font-size: 14px; }
input, select, textarea { width: 100%; margin-top: 4px; min-height: 40px; border: 1px solid var(--line); padding: 8px; font: inherit; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.checks input { width: auto; min-height: 0; }
.site-footer { background: url("assets/media/ImgFooter.jpg") center/cover no-repeat; color: #fff; margin-top: 40px; }
.site-footer-scrim { background: rgb(79 79 80 / 80%); padding: 36px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer a { color: #fff; }
.legal { background: rgb(0 0 0 / 25%); margin-top: 24px; padding: 12px 0; font-size: 13px; }
.notice { background: #e7f6f4; padding: 12px; }
.ce-carousel { display: flex; align-items: center; gap: 8px; margin: 28px 0; text-align: left; }
.ce-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; }
.ce-track .ce-card { flex: 0 0 280px; scroll-snap-align: start; }
.ce-prev, .ce-next { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: var(--teal); color: #fff; font-size: 28px; cursor: pointer; }
@media (max-width: 860px) {
  .top-meta, .menu { display: none; }
  .menu.open { display: flex; flex-direction: column; }
  .menu-toggle { display: inline-flex; }
  .bar .wrap { flex-wrap: wrap; }
  .grid-3, .grid-2, .checks, .foot-grid { grid-template-columns: 1fr; }
  .hero img { height: 220px; }
}
