/* ============================================
   EVENTS 4 YOU — Design tokens
   Navy #003655 / Gold #D4AF37 / Cream #FAF6EE
   Display: Fraunces  |  Body/UI: Work Sans
   Signature motif: flowing "ribbon" lines from the logo mark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --navy: #003655;
  --navy-ink: #0c2534;
  --gold: #D4AF37;
  --gold-soft: #e5c766;
  --cream: #FAF6EE;
  --cream-dim: #F1EADA;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --line: rgba(0,54,85,0.12);
  --shadow: 0 10px 30px rgba(0,54,85,0.10);
  --radius: 2px;
  --max: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--navy-ink);
  font-family:'Work Sans', sans-serif;
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  font-weight:500;
  line-height:1.12;
  margin:0 0 .5em 0;
  color:var(--navy);
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2.4rem, 5vw, 4.2rem); font-weight:400;}
h2{font-size:clamp(1.9rem, 3.4vw, 2.7rem);}
h3{font-size:1.35rem;}
p{margin:0 0 1em 0;}
a{color:inherit;}
img{max-width:100%; display:block;}
.eyebrow{
  font-family:'Work Sans', sans-serif;
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  margin-bottom:.9em;
  display:inline-block;
}
.wrap{max-width:var(--max); margin:0 auto; padding:0 28px;}
.italic{font-style:italic; color:var(--gold);}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  padding:.95em 1.7em;
  border-radius:999px;
  font-family:'Work Sans', sans-serif;
  font-weight:600;
  font-size:.98rem;
  text-decoration:none;
  border:1.5px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor:pointer;
}
.btn:hover{transform:translateY(-2px);}
.btn-whatsapp{
  background:var(--whatsapp);
  color:#fff;
  box-shadow:0 8px 22px rgba(37,211,102,0.32);
}
.btn-whatsapp:hover{background:var(--whatsapp-dark);}
.btn-outline{
  background:transparent;
  border-color:var(--navy);
  color:var(--navy);
}
.btn-outline:hover{background:var(--navy); color:var(--white);}
.btn-outline-light{
  background:transparent;
  border-color:rgba(255,255,255,0.55);
  color:var(--white);
}
.btn-outline-light:hover{background:var(--white); color:var(--navy);}

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,238,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 28px;
  max-width:var(--max); margin:0 auto;
}
.nav .brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.nav .brand img{height:64px; width:auto;}
.nav .brand span{
  font-family:'Fraunces', serif; font-size:1.15rem; color:var(--navy); font-weight:500;
  letter-spacing:.01em;
}
.nav ul{
  list-style:none; display:flex; gap:30px; margin:0; padding:0;
  font-size:.92rem; font-weight:500;
}
.nav ul a{
  text-decoration:none; color:var(--navy-ink); position:relative; padding:4px 0;
}
.nav ul a::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .25s ease;
}
.nav ul a:hover::after, .nav ul a.active::after{transform:scaleX(1);}
.nav-cta{display:flex; align-items:center; gap:18px;}
.nav-toggle{display:none;}

@media (max-width: 860px){
  .nav ul{
    position:fixed; inset:70px 0 auto 0; background:var(--cream);
    flex-direction:column; padding:20px 28px; gap:18px;
    border-bottom:1px solid var(--line);
    transform:translateY(-130%); transition:transform .3s ease;
  }
  .nav ul.open{transform:translateY(0);}
  .nav-toggle{
    display:block; background:none; border:none; cursor:pointer;
  }
  .nav-toggle span{
    display:block; width:24px; height:2px; background:var(--navy); margin:5px 0;
  }
  .nav-cta .btn-outline{display:none;}
}

/* ---------- Ribbon motif (signature element) ---------- */
.ribbon-divider{
  width:100%; height:64px; display:block;
}
.ribbon-divider path{ vector-effect: non-scaling-stroke; }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:var(--navy);
  color:var(--white);
  padding:120px 0 100px;
}
.hero .wrap{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:center;
}
.hero h1{color:var(--white);}
.hero p.lead{
  font-size:1.15rem; color:rgba(255,255,255,0.82); max-width:46ch;
}
.hero .cta-row{display:flex; gap:16px; margin-top:2em; flex-wrap:wrap;}
.hero-lines{
  position:absolute; top:0; right:-6%; height:100%; width:60%;
  opacity:.9; pointer-events:none;
}
.hero-mark{
  position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
}
.hero-mark svg{width:100%; height:auto; max-width:360px;}

@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr; text-align:left;}
  .hero-mark{max-width:220px;}
}

/* ---------- Sections ---------- */
section{padding:96px 0;}
.section-cream{background:var(--cream);}
.section-white{background:var(--white);}
.section-navy{background:var(--navy); color:var(--white);}
.section-navy h2, .section-navy h3{color:var(--white);}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

/* Service cards (Inicio) */
.services-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:28px;
}
.service-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:38px 32px;
  position:relative;
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{transform:translateY(-6px); box-shadow:var(--shadow);}
.service-card .num{
  font-family:'Fraunces', serif; font-style:italic; color:var(--gold);
  font-size:.95rem; margin-bottom:1.2em; display:block;
}
.service-card h3{margin-bottom:.4em;}
.service-card p{color:#3d5666; font-size:.96rem;}
.service-card .link{
  display:inline-flex; align-items:center; gap:6px; margin-top:1em;
  font-weight:600; font-size:.9rem; color:var(--navy); text-decoration:none;
  border-bottom:1.5px solid var(--gold);
}
@media (max-width:900px){.services-grid{grid-template-columns:1fr;}}
.services-grid.cols-4{grid-template-columns:repeat(4, 1fr);}
@media (max-width:900px){.services-grid.cols-4{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.services-grid.cols-4{grid-template-columns:1fr;}}

/* Masonry-style portfolio gallery */
.masonry-grid{
  column-count:3; column-gap:14px;
}
.masonry-grid .gallery-item{
  display:block; break-inside:avoid; margin-bottom:14px;
  overflow:hidden; border-radius:6px;
  box-shadow:0 6px 18px rgba(0,54,85,0.12);
  cursor:zoom-in;
}
.masonry-grid .gallery-item img{
  width:100%; height:auto; display:block;
  transition:transform .4s ease;
  -webkit-user-select:none; user-select:none; -webkit-user-drag:none;
}
.masonry-grid .gallery-item:hover img{transform:scale(1.05);}
@media (max-width:900px){.masonry-grid{column-count:2;}}
@media (max-width:560px){.masonry-grid{column-count:1;}}

.portfolio-banner{
  width:100%; border-radius:6px; overflow:hidden; margin-bottom:40px;
  box-shadow:0 6px 18px rgba(0,54,85,0.12);
}
.portfolio-banner img{width:100%; height:auto; display:block; -webkit-user-select:none; user-select:none; -webkit-user-drag:none;}

/* Photo gallery grid (real photos) */
.gallery-grid{
  display:grid; gap:12px;
  border-radius:var(--radius);
}
.gallery-grid.cols-2{grid-template-columns:1fr 1fr;}
.gallery-grid.cols-2-2{grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr;}
.gallery-grid a, .gallery-grid .gallery-item{
  display:block; overflow:hidden; border-radius:6px; aspect-ratio:4/3;
  box-shadow:0 6px 18px rgba(0,54,85,0.12);
}
.gallery-grid img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .4s ease;
}
.gallery-grid a:hover img, .gallery-grid .gallery-item:hover img{transform:scale(1.06);}
@media (max-width:640px){
  .gallery-grid.cols-2-2{grid-template-columns:1fr 1fr;}
}

/* ---------- Photo protection ---------- */
.gallery-grid img,
.hero-mark img{
  -webkit-user-select:none; -moz-user-select:none; user-select:none;
  -webkit-user-drag:none; user-drag:none;
  pointer-events:auto;
}
.gallery-grid > *{cursor:zoom-in;}

.lightbox-overlay{
  position:fixed; inset:0; z-index:200;
  background:rgba(6,20,30,0.92);
  display:none; align-items:center; justify-content:center;
  padding:40px;
}
.lightbox-overlay.open{display:flex;}
.lightbox-overlay img{
  max-width:90vw; max-height:88vh; object-fit:contain;
  border-radius:4px; box-shadow:0 30px 80px rgba(0,0,0,0.5);
  -webkit-user-select:none; user-select:none; -webkit-user-drag:none;
  pointer-events:none;
}
.lightbox-close{
  position:absolute; top:22px; right:28px;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:1.4rem; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{background:rgba(255,255,255,0.22);}

/* Photo placeholder blocks (until real photos are uploaded) */
.photo-frame{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio: var(--ar, 4/3);
  background:
    linear-gradient(135deg, var(--navy) 0%, #05496f 55%, var(--navy) 100%);
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(0,54,85,0.12);
}
.photo-frame::before{
  content:''; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(115deg, rgba(212,175,55,0.16) 0 2px, transparent 2px 46px);
}
.photo-frame .label{
  position:relative; z-index:1;
  color:rgba(255,255,255,0.85);
  font-family:'Work Sans',sans-serif; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase;
  text-align:center; padding:0 20px;
}
.photo-frame .label b{display:block; font-family:'Fraunces',serif; font-style:italic; font-size:1.05rem; color:var(--gold-soft); letter-spacing:0; text-transform:none; margin-bottom:6px;}

/* Testimonials */
.testi-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:24px;
}
.testi-card{
  background:var(--white);
  border:1.5px dashed var(--gold);
  border-radius:var(--radius);
  padding:30px 26px;
}
.testi-card .quote-mark{
  font-family:'Fraunces', serif; font-size:2.4rem; color:var(--gold); line-height:1; display:block; margin-bottom:.1em;
}
.testi-card p.quote{font-style:italic; color:var(--navy-ink); font-size:.98rem;}
.testi-card .who{
  margin-top:1.1em; font-size:.85rem; font-weight:600; color:var(--navy);
  display:flex; align-items:center; gap:8px;
}
.testi-card .who .tag{
  font-weight:500; color:#7a6a2f; background:rgba(212,175,55,0.15);
  padding:2px 9px; border-radius:999px; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em;
}
@media (max-width:900px){.testi-grid{grid-template-columns:1fr;}}

/* Process / steps */
.steps{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  border-top:1px solid var(--line);
}
.step{
  padding:34px 26px 0; border-right:1px solid var(--line);
}
.step:last-child{border-right:none;}
.step .idx{
  font-family:'Fraunces', serif; font-style:italic; font-size:1.6rem; color:var(--gold);
}
@media (max-width:900px){
  .steps{grid-template-columns:1fr;}
  .step{border-right:none; border-bottom:1px solid var(--line); padding-bottom:26px;}
}

/* CTA band */
.cta-band{
  background:var(--navy);
  color:var(--white);
  padding:70px 0;
  text-align:center;
}
.cta-band h2{color:var(--white); margin-bottom:.3em;}
.cta-band p{color:rgba(255,255,255,0.78); max-width:52ch; margin:0 auto 1.8em;}

/* Footer */
footer.site{
  background:var(--navy-ink);
  color:rgba(255,255,255,0.72);
  padding:56px 0 26px;
  font-size:.92rem;
}
footer.site .grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;
  padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.12);
}
footer.site h4{color:var(--white); font-size:.95rem; margin-bottom:1em; font-family:'Work Sans',sans-serif; font-weight:600; letter-spacing:.03em;}
footer.site .brand-col{display:flex; align-items:flex-start; gap:12px;}
footer.site .brand-col img{height:44px;}
footer.site ul{list-style:none; margin:0; padding:0;}
footer.site ul li{margin-bottom:.6em;}
footer.site ul a{text-decoration:none; color:inherit;}
footer.site ul a:hover{color:var(--gold-soft);}
.foot-bottom{
  display:flex; justify-content:space-between; align-items:center; padding-top:22px;
  flex-wrap:wrap; gap:12px; font-size:.82rem; color:rgba(255,255,255,0.5);
}
.foot-bottom a{color:rgba(255,255,255,0.5); text-decoration:underline;}
@media (max-width:760px){footer.site .grid{grid-template-columns:1fr;}}

/* Floating WhatsApp button (legacy, kept for reference) */
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:60;
  width:60px; height:60px; border-radius:50%;
  background:var(--whatsapp);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(37,211,102,0.45);
  transition:transform .2s ease;
}
.wa-float:hover{transform:scale(1.08);}
.wa-float svg{width:30px; height:30px;}

/* ---------- Agent chat widget ---------- */
.agent-widget{position:fixed; right:20px; bottom:20px; z-index:70; font-family:'Work Sans', sans-serif;}

.agent-fab{
  width:62px; height:62px; border-radius:50%;
  background:var(--whatsapp);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(37,211,102,0.45);
  border:none; cursor:pointer; position:relative;
  transition:transform .2s ease;
}
.agent-fab:hover{transform:scale(1.07);}
.agent-fab svg{width:28px; height:28px;}
.agent-fab .ping{
  position:absolute; top:-3px; right:-3px; width:15px; height:15px; border-radius:50%;
  background:var(--gold); border:2px solid var(--cream);
}
.agent-fab .icon-close{display:none;}
.agent-widget.open .agent-fab .icon-chat{display:none;}
.agent-widget.open .agent-fab .icon-close{display:block;}

.agent-panel{
  position:absolute; right:0; bottom:78px;
  width:326px; max-width:calc(100vw - 40px);
  background:var(--white);
  border-radius:14px;
  box-shadow:0 22px 60px rgba(0,20,35,0.28);
  overflow:hidden;
  opacity:0; transform:translateY(16px) scale(.97); pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
}
.agent-widget.open .agent-panel{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}

.agent-head{
  background:var(--navy); color:var(--white);
  padding:16px 18px; display:flex; align-items:center; gap:12px;
}
.agent-head .avatar{
  width:38px; height:38px; border-radius:50%; background:var(--white);
  display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0;
}
.agent-head .avatar img{width:26px; height:26px; object-fit:contain;}
.agent-head .meta{line-height:1.25;}
.agent-head .meta .name{font-weight:600; font-size:.94rem;}
.agent-head .meta .status{font-size:.75rem; color:rgba(255,255,255,0.7); display:flex; align-items:center; gap:5px;}
.agent-head .meta .status::before{content:''; width:7px; height:7px; border-radius:50%; background:#3ee06b; display:inline-block;}

.agent-body{padding:16px 16px 8px; background:#F4F7F6; max-height:340px; overflow-y:auto;}
.agent-bubble{
  background:var(--white); border-radius:12px 12px 12px 2px;
  padding:11px 14px; font-size:.88rem; line-height:1.45; color:var(--navy-ink);
  box-shadow:0 1px 3px rgba(0,0,0,0.06); margin-bottom:10px; max-width:92%;
}
.agent-bubble.small{font-size:.8rem; color:#4a5f6b; background:transparent; box-shadow:none; padding:0 2px 10px;}

.agent-actions{display:flex; flex-direction:column; gap:8px; padding:2px 0 16px;}
.agent-btn{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  width:100%; text-align:left;
  background:var(--white); border:1.4px solid var(--line);
  border-radius:10px; padding:11px 13px;
  font-family:'Work Sans', sans-serif; font-size:.86rem; font-weight:500; color:var(--navy);
  cursor:pointer; transition:border-color .15s ease, background .15s ease;
}
.agent-btn:hover{border-color:var(--gold); background:#fffdf6;}
.agent-btn .arrow{color:var(--gold); font-size:1rem; flex-shrink:0;}

.agent-foot{
  padding:12px 16px; background:var(--white); border-top:1px solid var(--line);
  font-size:.72rem; color:#8a97a0; text-align:center;
}

@media (max-width:480px){
  .agent-panel{width:calc(100vw - 32px); right:-4px;}
}

/* Simple page hero (service pages / privacy) */
.page-hero{
  background:var(--navy); color:var(--white); padding:80px 0 64px;
  position:relative; overflow:hidden;
}
.page-hero .wrap{position:relative; z-index:2;}
.page-hero h1{color:var(--white); font-size:clamp(2.1rem,4.2vw,3.2rem);}
.page-hero p{color:rgba(255,255,255,0.78); max-width:56ch; font-size:1.05rem;}
.breadcrumb{
  font-size:.82rem; color:rgba(255,255,255,0.55); margin-bottom:1.4em;
  letter-spacing:.03em;
}
.breadcrumb a{color:rgba(255,255,255,0.8); text-decoration:none;}

/* Two column feature */
.feature-split{
  display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;
}
.feature-split.reverse{direction:rtl;}
.feature-split.reverse > *{direction:ltr;}
@media (max-width:900px){.feature-split{grid-template-columns:1fr; gap:34px;}}

/* Includes list */
.check-list{list-style:none; margin:0; padding:0;}
.check-list li{
  display:flex; gap:12px; align-items:flex-start; padding:11px 0;
  border-bottom:1px solid var(--line); font-size:.98rem;
}
.check-list li:last-child{border-bottom:none;}
.check-list svg{flex-shrink:0; margin-top:3px;}

/* Packages */
.pack-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.pack-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 28px; display:flex; flex-direction:column;
}
.pack-card.featured{
  border-color:var(--gold); box-shadow:var(--shadow); position:relative;
}
.pack-card.featured::before{
  content:'Más elegido'; position:absolute; top:-13px; left:28px;
  background:var(--gold); color:var(--navy); font-size:.7rem; font-weight:700;
  padding:4px 12px; border-radius:999px; letter-spacing:.04em; text-transform:uppercase;
}
.pack-card .price{font-family:'Fraunces',serif; font-style:italic; color:var(--navy); font-size:1.3rem; margin:.3em 0 1em;}
@media (max-width:900px){.pack-grid{grid-template-columns:1fr;}}

/* Privacy page prose */
.prose{max-width:760px;}
.prose h2{margin-top:1.6em; font-size:1.4rem;}
.prose p, .prose li{color:#28414f; font-size:.99rem;}
.prose ul{padding-left:1.2em;}

/* Utility */
.mt-0{margin-top:0;}
.center{text-align:center;}
