/*
Theme Name:  Casa Estilo Child
Description: Tema hijo de Hello Elementor para Casa Estilo Punta Cana — layout tipo Moore con barra lateral fija, turquesa y lima.
Author:      Casa Estilo Punta Cana
Version:     1.0
Template:    hello-elementor
Text Domain: casaestilo-child
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ink:       #1d1d1b;
  --text:      #4d4d4a;
  --muted:     #8a877f;
  --line:      #e7e4de;
  --bg:        #ffffff;
  --soft:      #f2f0ec;
  --teal:      #00a5be;
  --teal-ink:  #00788b;
  --teal-soft: #e6f5f8;
  --lime:      #d9ce42;
  --accent:    var(--teal-ink);
  --logo:      'Raleway', 'Poppins', system-ui, sans-serif;
  --rail:      118px;
  --serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:      'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 300 15px/1.75 var(--sans); }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   BARRA LATERAL FIJA (rail)
   — aparece en todas las páginas vía header.php
   ============================================================ */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 56px 0 40px;
}
.rail-logo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 300 31px/1 var(--logo);
  letter-spacing: .04em;
  white-space: nowrap;
}
.rail-logo .c { color: var(--lime); }
.rail-logo .e { color: var(--teal); }
.rail-contact {
  display: flex;
  gap: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 500 11px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
  margin-bottom: 28px;
}
.rail-contact a { white-space: nowrap; }
.rail-contact a:hover { color: var(--accent); }
@media (max-height: 820px) and (min-width: 861px) {
  .rail-contact { display: none; }
  .rail { padding: 40px 0 28px; }
  .rail-logo { font-size: 26px; }
}
.burger {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.burger span { display: block; width: 1.5px; height: 16px; background: var(--ink); }
.burger:hover { border-color: var(--teal); }

/* ============================================================
   MENÚ A PANTALLA COMPLETA
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity .35s;
}
.menu.open { opacity: 1; }
.menu[hidden] { display: none; }
.menu ul { text-align: center; }
.menu li a {
  display: block;
  font: 500 clamp(40px, 6vw, 72px)/1.25 var(--serif);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  transition: color .2s;
}
.menu li a:hover { color: var(--accent); }
.menu-close {
  position: absolute;
  top: 28px; right: 36px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font: 300 34px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.menu-foot { font-size: 13px; color: var(--muted); text-align: center; padding: 0 24px; }

/* ============================================================
   ESTRUCTURA DE PÁGINA
   ============================================================ */
.page { margin-left: var(--rail); }

/* Hello Elementor añade clases al body — aseguramos que el margen aplique */
body.elementor-page .page,
body.elementor-page .elementor { margin-left: var(--rail); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,.28) 40%, rgba(20,18,15,.45) 100%);
}
.hero-top {
  position: absolute;
  top: 34px; left: 56px; right: 56px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 36px;
}
.topnav { display: flex; gap: 34px; }
.topnav a {
  font: 500 12px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topnav a:hover { border-color: var(--lime); }
.ig { display: flex; opacity: .9; }
.hero-text { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.hero h1 { font-weight: 400; }
.hero-name {
  display: block;
  font: 500 clamp(64px, 10vw, 150px)/.95 var(--serif);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hn-casa  { color: var(--lime); }
.hn-estilo { color: var(--teal); }
.hero-sub {
  display: block;
  margin-top: 22px;
  font: 400 clamp(20px, 2.2vw, 30px)/1.3 var(--serif);
  font-style: italic;
}
.hero-addr {
  margin-top: 22px;
  font: 500 12px/2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
}
.scroll {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid #fff;
  border-radius: 14px;
}
.scroll span {
  position: absolute;
  left: 50%; top: 9px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ============================================================
   ELEMENTOR — ajuste del hero cuando se construye con sección
   El widget HTML del hero lleva la clase .hero directamente
   en el wrapper de la sección de Elementor.
   ============================================================ */
.elementor-section.hero,
.e-con.hero {
  min-height: 100vh !important;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.elementor-section.hero::after,
.e-con.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,.28) 40%, rgba(20,18,15,.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.elementor-section.hero .elementor-container,
.e-con.hero > .e-con-inner {
  position: relative;
  z-index: 2;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.sec { padding: 120px 56px 0; max-width: 1340px; margin: 0 auto; }
.sec-line { border-top: 1px solid var(--line); margin-top: 120px; max-width: none; }

/* Cuando Elementor envuelve la sección, el padding va en el contenedor de Elementor */
.elementor-section.sec > .elementor-container,
.e-con.sec > .e-con-inner {
  padding-top: 120px;
  padding-left: 56px;
  padding-right: 56px;
  max-width: 1340px;
}

.title {
  font: 500 clamp(32px, 3.4vw, 46px)/1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, var(--lime) 50%, var(--teal) 50%);
}
.lead { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--text); }

/* ============================================================
   TARJETAS SERVICIOS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 410px));
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  text-align: center;
  padding-bottom: 36px;
  background: #fff;
}
.card-img { aspect-ratio: 410/445; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin: -36px auto 0;
  border-radius: 50%;
  background: var(--teal);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 {
  margin-top: 30px;
  font: 500 23px/1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.card ul { margin-top: 24px; }
.card li { font: 500 12px/2.9 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

/* ============================================================
   FILAS IMAGEN + TEXTO
   ============================================================ */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 140px 56px 0;
  max-width: 1340px;
  margin: 0 auto;
}
.row-img { overflow: hidden; }
.row-img img { width: 100%; aspect-ratio: 620/540; object-fit: cover; }
.row-text h2 {
  font: 500 clamp(30px, 3vw, 42px)/1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}
.drop { margin-top: 30px; text-align: justify; }
.drop:first-letter { float: left; font: 400 52px/.82 var(--sans); color: var(--teal); margin: 8px 12px 0 0; }
.dots { margin-top: 22px; padding-left: 18px; list-style: disc; }
.nums { margin-top: 22px; padding-left: 20px; list-style: decimal; }
.dots li, .nums li { font-size: 14px; line-height: 1.95; }
.dots li::marker, .nums li::marker { color: var(--teal); font-weight: 500; }
.pill {
  display: inline-block;
  margin-top: 38px;
  padding: 15px 30px;
  border-radius: 40px;
  background: var(--teal-soft);
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  transition: background .25s, color .25s;
}
.pill:hover { background: var(--teal); color: #fff; }
.center { text-align: center; }

/* ============================================================
   PROYECTOS / GRID 3 COL
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.proj { display: block; text-align: center; }
.proj-img { aspect-ratio: 400/415; overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.proj:hover .proj-img img { transform: scale(1.05); }
.proj h3 {
  margin-top: 24px;
  font: 500 23px/1.2 var(--serif);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.proj p {
  margin-top: 6px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.proj:hover h3 { color: var(--teal-ink); }
#proyectos .grid { row-gap: 52px; }

/* ============================================================
   TIENDA / UBICACIÓN
   ============================================================ */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; margin-top: 40px; }
.facts li { font: 500 12px/1.7 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-align: center; }
.facts span { display: block; color: var(--teal-ink); font-size: 10.5px; letter-spacing: .16em; }
.map { margin-top: 46px; height: 460px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ============================================================
   CONSEJOS
   ============================================================ */
.tip-img { aspect-ratio: 600/660; overflow: hidden; }
.tip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.tip:hover .tip-img img { transform: scale(1.04); }
.tip h3 {
  margin-top: 26px;
  font: 500 24px/1.25 var(--serif);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}
.tip p { margin-top: 14px; font-size: 13.5px; line-height: 1.85; }
.tip a {
  display: inline-block;
  margin-top: 18px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-ink);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
}
.tip a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.form { max-width: 860px; margin: 50px auto 0; text-align: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 22px;
  font: 400 13px/1.4 var(--sans);
  color: var(--ink);
  letter-spacing: .04em;
  border-radius: 0;
  appearance: none;
}
.form select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1d1b' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 22px center;
  color: var(--muted);
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); }
.full { display: block; margin-top: 24px; }
.check { display: inline-flex; gap: 10px; align-items: center; margin-top: 30px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; padding: 0; appearance: auto; accent-color: var(--teal); }
.form-msg { min-height: 22px; margin-top: 14px; font-size: 13px; color: var(--accent); }
.btn-dark {
  margin-top: 18px;
  padding: 18px 38px;
  border: 0;
  border-radius: 40px;
  background: var(--teal-ink);
  color: #fff;
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s;
}
.btn-dark:hover { background: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { margin-top: 130px; padding: 110px 56px 46px; text-align: center; border-top: 3px solid var(--lime); }
.foot .big + .big { color: var(--teal-ink); }
.big {
  display: block;
  font: 500 clamp(26px, 3.6vw, 50px)/1.25 var(--serif);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .2s;
  word-break: break-word;
}
.big:hover { color: var(--accent); }
.foot address { margin-top: 34px; font-style: normal; font-size: 14px; line-height: 1.9; }
.hours { margin-top: 10px; font-size: 14px; }
.ig-foot {
  display: inline-block;
  margin-top: 22px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
}
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.foot-nav a { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot-nav a:hover { color: var(--accent); }
.copy { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* ============================================================
   ANIMACIÓN DE ENTRADA
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll span { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .row { gap: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --rail: 0px; }
  .rail { inset: 0 0 auto 0; width: 100%; height: 68px; flex-direction: row; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-logo { writing-mode: horizontal-tb; transform: none; font-size: 25px; }
  .rail-contact { display: none; }
  .burger { width: 46px; height: 46px; }
  .burger span { height: 13px; }
  .page { padding-top: 68px; }
  body.elementor-page .page,
  body.elementor-page .elementor { margin-left: 0; padding-top: 68px; }
  .hero { height: calc(100svh - 68px); min-height: 520px; }
  .elementor-section.hero, .e-con.hero { min-height: calc(100svh - 68px) !important; }
  .hero-top { display: none; }
  .sec { padding: 84px 16px 0; }
  .sec-line { margin-top: 84px; }
  .cards { grid-template-columns: minmax(0, 440px); }
  .row, .row-rev { grid-template-columns: 1fr; gap: 34px; padding: 90px 16px 0; }
  .row-rev .row-img { order: -1; }
  .grid { gap: 16px; }
  #proyectos .grid { row-gap: 36px; }
  .fields { grid-template-columns: 1fr; gap: 16px; }
  .full { margin-top: 16px; }
  .map { height: 360px; }
  .foot { margin-top: 90px; padding: 80px 16px 40px; }
  .menu-close { top: 16px; right: 16px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .facts { gap: 18px 28px; }
  .hero-addr { font-size: 11px; }
}

/* ============================================================
   HELLO ELEMENTOR — neutralizar estilos que pisan el diseño
   ============================================================ */
.elementor-widget-heading .elementor-heading-title { margin: 0; }
.elementor-section { margin: 0; }
.elementor-widget-container { padding: 0; }
/* Que el contenido de Elementor respete el max-width de las secciones .sec */
.elementor-section.sec .elementor-container { max-width: 1340px; }
