/*
Theme Name: Pinta Caritas
Theme URI: https://pintacaritas.cl
Author: Pinta Caritas Santiago
Description: Tema personalizado para Pinta Caritas Santiago — maquilladoras profesionales a domicilio
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: pintacaritas
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: #FFFFFF; color: #0D0D14; line-height: 1.6; overflow-x: hidden; }

:root {
  --pink: #E8196B;
  --pink-dark: #C4135A;
  --pink-bg: rgba(232,25,107,0.08);
  --cream: #FFFFFF;
  --cream-dark: #E8E8E8;
  --dark: #0A0A12;
  --dark-card: #111118;
  --text: #0D0D14;
  --gray: #6B6878;
  --border-light: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.btn-pink {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--pink); color: #fff;
  padding: 15px 30px; border-radius: 50px;
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn-pink:hover { background: var(--pink-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--text);
  padding: 14px 30px; border-radius: 50px;
  border: 2px solid rgba(13,13,20,0.2);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: #fff;
  padding: 14px 30px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.section-label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 16px;
}

/* Eyebrow dentro del H1: para Google es parte del H1, para el usuario es una etiqueta pequeña */
.h1-eyebrow {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 18px;
}

/* Eyebrow dentro de H2: keyword-rich sin romper la lectura visual */
.h2-kw {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.accent { color: var(--pink); }

/* ===================== NAV ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,16,37,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
  transition: background .3s;
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: .04em; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* ===================== HERO ===================== */
.hero {
  background: #1A1025;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.hero-left {
  padding: 120px 60px 80px 28px;
  max-width: 620px;
  margin-left: auto;
}
.hero h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: #fff;
}
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.6);
  line-height: 1.75; max-width: 460px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-right {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; top: 20%; left: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,25,107,.18) 0%, transparent 70%);
  pointer-events: none;
}
.cards-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cards-inner { position: relative; width: 420px; height: 560px; }

.pcard {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
}
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pcard-1 { width: 195px; height: 255px; top: 0; left: 10px; animation: fc1 6.5s ease-in-out infinite; }
.pcard-2 { width: 225px; height: 285px; top: 20px; left: 155px; z-index: 2; animation: fc2 7.5s ease-in-out infinite .8s; }
.pcard-3 { width: 180px; height: 235px; top: 15px; right: 0; animation: fc3 5.8s ease-in-out infinite 1.5s; }
.pcard-4 { width: 210px; height: 265px; bottom: 15px; left: 0; animation: fc1 7s ease-in-out infinite 2.2s; }
.pcard-5 { width: 200px; height: 255px; bottom: 10px; right: 5px; animation: fc2 6.2s ease-in-out infinite 1s; }

@keyframes fc1 {
  0%,100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-13px); }
}
@keyframes fc2 {
  0%,100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}
@keyframes fc3 {
  0%,100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-17px); }
}

/* ===================== TICKER ===================== */
.ticker-outer {
  grid-column: 1 / -1;
  width: 100%;
  z-index: 20;
}
.ticker-band {
  background: #0D0820;
  padding: 13px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker-item {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ticker-sep {
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  margin: 0 20px;
  flex-shrink: 0;
  line-height: 1;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ===================== SECCIONES BASE ===================== */
.section { padding: 96px 0; }
.section-header { margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(30px, 4vw, 52px); font-weight: 900;
  letter-spacing: -1.2px; line-height: 1.08;
  margin-bottom: 14px;
}
.section-header p { color: var(--gray); font-size: 16px; max-width: 520px; line-height: 1.7; }

/* ===================== TIPOGRAFÍA SCRIPT ===================== */
.h2-script { line-height: 1; margin-bottom: 14px; }
.script-line {
  display: block;
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  color: var(--pink);
  font-style: normal;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.bold-line {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.2;
  margin-top: 4px;
}

/* ===================== DIFERENCIADORES ===================== */
.section-dif { background: var(--cream); }
.dif-header { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; margin-bottom: 56px; }

.dif-awesome {
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  gap: 40px;
  align-items: center;
}

.dif-col { display: flex; flex-direction: column; gap: 32px; }

/* Izquierda: ícono a la DERECHA del texto (mirando hacia la foto) */
.dif-col-left .dif-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 16px;
  text-align: right;
}

/* Derecha: ícono a la IZQUIERDA del texto (mirando hacia la foto) */
.dif-col-right .dif-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.dif-item-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--pink-bg);
  display: flex; align-items: center; justify-content: center;
}
.dif-item-text h3 { font-size: 15px; font-weight: 900; margin-bottom: 4px; line-height: 1.3; }
.dif-item-text p { font-size: 13px; color: var(--gray); line-height: 1.6; }

.dif-photo-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  aspect-ratio: 3 / 4;
}
.dif-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== COTIZADOR ===================== */
.cotizador-section { background: var(--dark); padding: 96px 0; }
.cot-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--pink); margin-bottom: 20px; }
.cot-h2 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900; color: #fff;
  line-height: 1.0; letter-spacing: -2.5px;
  margin-bottom: 56px;
}
.cot-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.field-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: #9999BB; margin-bottom: 10px;
}
.field-group select {
  width: 100%; background: #1C1C28; color: #fff;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 16px 44px 16px 18px;
  font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239999BB' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  transition: border-color .2s;
}
.field-group select:focus { outline: none; border-color: var(--pink); }
.field-group select option { background: #1C1C28; }

.cot-result {
  background: #111118; border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 36px;
  display: none; animation: fadeUp .35s ease;
}
.cot-result.show { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.res-label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #9999BB; margin-bottom: 8px; }
.res-price { font-size: 52px; font-weight: 900; color: var(--pink); letter-spacing: -1.5px; line-height: 1; }
.res-note { font-size: 14px; color: #9999BB; margin-top: 10px; line-height: 1.6; }
.res-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ===================== GALERÍA ===================== */
.galeria-section { background: var(--cream); }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  gap: 14px;
}
.g-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; display: block; }
.g-item:hover img { transform: scale(1.06); }
.g-item.tall { grid-row: span 2; }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,18,.45) 0%, transparent 55%);
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.g-item:hover::after { opacity: 1; }
.galeria-cta { text-align: center; margin-top: 44px; }

/* ===================== WAVE ===================== */
.section-wave { background: #fff; line-height: 0; display: block; }
.section-wave svg { display: block; width: 100%; height: 90px; }

/* ===================== SERVICIOS ===================== */
.servicios-section { background: var(--white); }
.serv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.serv-item {
  padding: 44px 28px;
  border-right: 1px solid var(--cream-dark);
  transition: background .2s;
  display: flex; flex-direction: column; align-items: center;
}
.serv-item:last-child { border-right: none; }
.serv-item:hover { background: #fafafa; }
.serv-icon-wrap {
  width: 68px; height: 68px;
  background: var(--pink-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; flex-shrink: 0;
}
.serv-item h3 { font-size: 19px; font-weight: 900; margin-bottom: 12px; letter-spacing: -.2px; text-align: center; }
.serv-item p { font-size: 14px; color: var(--gray); line-height: 1.65; margin-bottom: 18px; text-align: center; flex: 1; }
.serv-precio { display: block; font-size: 17px; font-weight: 900; color: var(--pink); margin-bottom: 16px; }
.serv-link {
  font-size: 12px; font-weight: 700; color: var(--pink);
  text-decoration: none; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1.5px solid var(--pink); padding-bottom: 2px;
  transition: opacity .2s;
}
.serv-link:hover { opacity: .7; }

/* ===================== COMUNAS ===================== */
.comunas-section { background: var(--cream); }

.comunas-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 32px;
}

.comunas-stat { margin-bottom: 20px; }
.stat-num {
  display: block;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 900; line-height: 1;
  color: var(--pink); letter-spacing: -3px;
}
.stat-label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--gray); text-transform: uppercase; letter-spacing: .1em;
  margin-top: 6px;
}

.com-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.com-chip {
  font-size: 12px; font-weight: 700; color: var(--text);
  background: var(--pink-bg);
  border: 1px solid rgba(232,25,107,.15);
  padding: 5px 13px; border-radius: 50px;
}

.com-free-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #16A34A;
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.2);
  padding: 8px 16px; border-radius: 50px;
}

.comunas-zones {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.zones-title {
  padding: 14px 24px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); background: #fafafa;
  border-bottom: 1px solid var(--cream-dark);
}
.zone-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cream-dark);
}
.zone-row:last-child { border-bottom: none; }
.zone-cost { font-size: 14px; font-weight: 900; color: var(--text); white-space: nowrap; min-width: 76px; }
.zone-list { font-size: 14px; color: var(--gray); line-height: 1.55; }

.com-cta-bar {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius); padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.com-cta-bar p { font-size: 16px; color: var(--gray); font-weight: 700; }
.com-cta-bar p strong { color: var(--text); }

/* ===================== FAQ ===================== */
.faq-section { background: var(--white); }
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.faq-split-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.faq-split-photo img { width: 100%; display: block; object-fit: cover; }
.faq-split-content h2 { margin-bottom: 36px; }
.faq-split-content .section-label { margin-bottom: 12px; }
.faq-inner { max-width: 100%; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0; gap: 20px;
}
.faq-btn span { font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.faq-icon {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; color: var(--pink);
  transition: background .2s, border-color .2s; line-height: 1;
}
.faq-item.open .faq-icon { background: var(--pink); border-color: var(--pink); color: #fff; }
.faq-answer {
  font-size: 15px; color: var(--gray); line-height: 1.75;
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 240px; padding-bottom: 28px; }

/* ===================== CTA FINAL ===================== */
.cta-final { background: var(--dark); padding: 120px 0; text-align: center; }
.cta-final h2 {
  font-size: clamp(32px, 5vw, 64px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.05; color: #fff; margin-bottom: 20px;
}
.cta-final p { color: #9999BB; font-size: 17px; margin-bottom: 44px; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-final-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===================== FOOTER ===================== */
.site-footer { background: #050508; border-top: 1px solid rgba(255,255,255,.06); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; }
.footer-logo-img { height: 44px; width: auto; display: block; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: #9999BB; font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #9999BB; font-size: 13px; }

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.55); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .dif-awesome { grid-template-columns: 1fr 220px 1fr; gap: 28px; }
  .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .serv-item:nth-child(2) { border-right: none; }
  .serv-item:nth-child(1),
  .serv-item:nth-child(2) { border-bottom: 1px solid var(--cream-dark); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 120px 28px 60px; margin: 0; max-width: 100%; }
  .hero-right { display: none; }
  .cot-fields { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .g-item.tall { grid-row: span 1; }
  .nav-links { display: none; }
  .dif-awesome { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 32px; }
  .dif-photo-wrap { grid-column: 1 / -1; width: 200px; margin: 0 auto; aspect-ratio: 1; }
  .dif-col-left .dif-item { flex-direction: row; text-align: left; }
  .dif-col { gap: 20px; }
  .comunas-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .faq-split { grid-template-columns: 1fr; gap: 36px; }
  .faq-split-photo { position: static; }
}
@media (max-width: 560px) {
  .serv-grid { grid-template-columns: 1fr; }
  .serv-item { border-right: none; border-bottom: 1px solid var(--cream-dark); }
  .serv-item:last-child { border-bottom: none; }
  .comunas-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .cot-h2 { letter-spacing: -1.5px; }
  .dif-awesome { grid-template-columns: 1fr; }
  .dif-photo-wrap { grid-column: 1; width: 180px; }
}
