/* =====================================================
   VARIABLES
===================================================== */
:root{
  --black:#1f1f1f;
  --dark:#2b2b2b;
  --white:#ffffff;
  --light:#f6f6f6;
  --text:#1a1a1a;
  --muted:#3a3a3a;
}

/* Reset básico */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; overflow-x:hidden; }
body{
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color:var(--text);
  background:#fff;
}

img{ max-width:100%; display:block; }

/* =====================================================
   HEADER / NAV
===================================================== */
.topbar{
  background: linear-gradient(#232323, #1e1e1e);
  height:72px;
  display:flex;
  align-items:center;
  position:relative;   /* ← agregar */
  z-index:200;         /* ← agregar */
}


.topbar__inner{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand__logo{
  height:40px;
}

.nav{
  display:flex;
  gap:18px;
}

.nav__link{
  color:#f2f2f2;
  text-decoration:none;
  font-size:14px;
  opacity:.85;
  transition:.2s;
}

.nav__link:hover{
  opacity:1;
}

.nav__link.is-active{
  text-decoration:underline;
  text-underline-offset:6px;
  opacity:1;
}

/* Botón hamburguesa */
.navToggle{
  display:none;
  background:none;
  border:1px solid rgba(255,255,255,.3);
  border-radius:8px;
  width:40px;
  height:40px;
  cursor:pointer;
}
.navToggle span{
  display:block;
  height:2px;
  background:#fff;
  margin:6px 8px;
}

/* =====================================================
   BOTONES
===================================================== */
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:170px;
  height:48px;
  border:1px solid #2f2f2f;
  text-decoration:none;
  font-size:10px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#1a1a1a;
  transition:.2s;
}
.btn-outline:hover{
  background:#f1f1f1;
}

.btn-outline--light{
  border-color:#fff;
  color:#fff;
}
.btn-outline--light:hover{
  background:rgba(255,255,255,.15);
}

/* =====================================================
   HERO PRINCIPAL
===================================================== */
.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  height:calc(100vh - 72px);
  min-height:560px;
}

.hero__left{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.hero__content{
  max-width:420px;
}

.hero__title{
  font-size:clamp(42px,4vw,60px);
  line-height:1.05;
  font-weight:300;
  margin:0 0 18px;
  text-transform:uppercase;
}

.hero__subtitle{
  margin-bottom:30px;
  font-size:15px;
}

.hero__right{
  position:relative;
  overflow:hidden;
}
.hero__image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =====================================================
   NOSOTROS
===================================================== */
.about{
  padding:60px 0;
  background:#fff;
}
.about__inner{
  max-width:1200px;
  margin:auto;
  padding:0 18px;
}
.about__heading{
  margin-bottom:30px;
  font-size:26px;
}
.about__grid{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:70px;
}
.about__media{
  height:380px;
  overflow:hidden;
}
.about__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.about__text{
  max-width:520px;
  margin:auto;
}
.about__text h3{
  font-size:20px;
  margin-bottom:20px;
}
.about__text p{
  line-height:1.8;
}
.about__link{
  display:block;
  margin-top:30px;
  text-decoration:underline;
}

/* =====================================================
   PRODUCTO DESTACADO
===================================================== */
.featured-product{
  position:relative;
  height:520px;
  background:url("assets/Fountain\ of\ life.png") center/cover no-repeat;
}
.featured-product__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.2);
}
.featured-product__content{
  position:relative;
  z-index:2;
  height:100%;
  max-width:1200px;
  margin:auto;
  padding:0 18px;
  display:grid;
  grid-template-columns:1fr 320px;
  align-items:center;
}
.featured-product__text{
  color:#fff;
}
.featured-product__title{
  font-family:"Playfair Display",serif;
  font-size:clamp(46px,5vw,64px);
}


/* =====================================================
   SOLUCIONES
===================================================== */
.solutions{
  padding:60px 0;
}
.solutions__inner{
  max-width:1200px;
  margin:auto;
  padding:0 18px;
}
.solutions__grid{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:80px;
}
.solutions__photo{
  height:320px;
  overflow:hidden;
}
.solutions__photo img{
  width:100%;
  height:120%;
  object-fit:cover;
}
.solutions__product{
  position:absolute;
}
.solutions__copy{
  line-height:1.9;
}

/* =====================================================
   WHY
===================================================== */
.why{
  background:#2b2b2b;
  padding:60px 0;
}
.why__inner{
  max-width:1200px;
  margin:auto;
  padding:0 18px;
}
.why__grid{
  display:grid;
  grid-template-columns:1fr 520px;
  gap:70px;
  align-items:center;
}
.why__title{
  color:#fff;
}
.why__copy{
  color:rgba(255,255,255,.85);
}
.why__frame{
  padding:14px;
  border:1px solid rgba(255,255,255,.5);
}
.why__frame img{
  width:100%;
  height:280px;
  object-fit:cover;
}

/* =====================================================
   TRIPTYCH
===================================================== */
.triptych{
  background:#2b2b2b;
  padding:60px 0;
}
.triptych__grid{
  max-width:1200px;
  margin:auto;
  padding:0 18px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:50px;
}
.triptych__card{
  text-align:center;
  color:#fff;
}
.triptych__oval{
  width:300px;
  height:150px;
  border-radius:999px;
  overflow:hidden;
  margin:0 auto 20px;
}
.triptych__oval img{
  width:100%;
  height:100%;
  object-fit:cover;
  
}
.triptych__btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:200px;
  height:40px;
  border:1px solid rgba(255,255,255,.6);
  color:#fff;
  text-decoration:none;
  font-size:10px;
}

/* =====================================================
   CONTACTO
===================================================== */
.contact{
  background:#fff;
}
.contact__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:560px;
}
.contact__left{
  padding:70px 80px;
}
.contact__right{
  position:relative;
}
.contact__right img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.contact__btn{
  background:#2b2b2b;
  color:#fff;
  padding:12px 26px;
  border-radius:6px;
  text-decoration:none;
  font-size:10px;
  text-transform:uppercase;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width:980px){

  .hero{
    grid-template-columns:1fr;
  }

  .about__grid,
  .solutions__grid,
  .why__grid,
  .triptych__grid,
  .contact__grid{
    grid-template-columns:1fr;
  }

  .nav{
    display:none;
    position:absolute;
    right:18px;
    top:72px;
    background:#1e1e1e;
    flex-direction:column;
    padding:12px;
  }

  .nav.is-open{
    display:flex;
  }

  .navToggle{
    display:block;
  }
.featured-product{
  background-image: url("assets/Fountain\ of\ life\ movil.png");
}
.featured-product__image img{
  max-height:480px;
  width:auto;
  object-fit:contain;
}
.featured-product__image img{
  max-height:180px;
}


}

/* =========================================
   PÁGINA NOSOTROS
========================================= */

/* Hero interno */
.page-hero{
  background:#ffffff;
  padding:70px 0 30px;
}

.page-hero__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

.page-hero__kicker{
  font-size:14px;
  margin:0 0 10px;
  color:#2a2a2a;
}

.page-hero__title{
  font-family:"Playfair Display", serif;
  font-size:clamp(36px,4.5vw,54px);
  line-height:1.05;
  font-weight:600;
  margin:0;
  color:#1a1a1a;
}


/* Contenido principal */
.page-content{
  background:#ffffff;
  padding:40px 0 80px;
}

.page-content__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

.page-content__grid{
  display:grid;
  grid-template-columns:1fr 380px;
  gap:70px;
  align-items:start;
}

/* Texto */
.page-content__card p{
  font-size:16px;
  line-height:1.9;
  color:#2f2f2f;
  margin:0 0 18px;
  max-width:760px;
}

.page-content__card h2{
  font-size:22px;
  font-weight:600;
  margin:28px 0 14px;
}

.page-content__lead{
  font-weight:500;
  margin-bottom:10px;
}

.page-content__list{
  margin:0 0 22px 18px;
  padding:0;
}

.page-content__list li{
  margin-bottom:10px;
  line-height:1.7;
}

.page-content__quote{
  margin-top:25px;
  padding:18px;
  background:#f6f6f6;
  border-left:3px solid #2b2b2b;
  border-radius:6px;
  line-height:1.7;
}

.page-content__cta{
  margin-top:30px;
}

/* Tarjeta lateral */
.aside-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}

.aside-card__img{
  height:260px;
  overflow:hidden;
}

.aside-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.aside-card__body{
  padding:18px;
}

.aside-card__body h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:600;
}

.aside-card__body p{
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:#3a3a3a;
}

/* Responsive */
@media (max-width:980px){
  .page-content__grid{
    grid-template-columns:1fr;
    gap:40px;
  }

  .aside-card__img{
    height:220px;
  }
}

/* =========================================
   PÁGINA NEGOCIO
========================================= */

/* Hero con imagen */
.biz-hero{
  position:relative;
  height:420px;
  background:url("assets/negocio-hero.png") center/cover no-repeat;
  display:flex;
  align-items:center;
}

.biz-hero__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
}

.biz-hero__inner{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
  color:#fff;
}

.biz-hero__kicker{
  font-size:14px;
  margin-bottom:10px;
}

.biz-hero__title{
  font-family:"Playfair Display", serif;
  font-size:clamp(36px,4.5vw,54px);
  line-height:1.05;
  font-weight:600;
}


/* Sección principal */
.biz{
  background:#ffffff;
  padding:60px 0 80px;
}

.biz__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

.biz__grid{
  display:grid;
  grid-template-columns:1fr 400px;
  gap:70px;
  align-items:start;
}

/* Texto */
.biz__content p{
  font-size:16px;
  line-height:1.9;
  margin:0 0 18px;
  color:#2f2f2f;
}

.biz__lead{
  font-weight:500;
}

.biz__h2{
  font-size:22px;
  font-weight:600;
  margin:28px 0 14px;
}

.biz__list{
  margin:0 0 22px 18px;
}

.biz__list li{
  margin-bottom:10px;
  line-height:1.7;
}

.biz__quote{
  margin-top:25px;
  padding:18px;
  background:#f6f6f6;
  border-left:3px solid #2b2b2b;
  border-radius:6px;
}

/* Tarjetas visuales */
.biz-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.08);
  margin-bottom:22px;
}

.biz-card__img{
  height:220px;
  background:#eaeaea;
  display:flex;
  align-items:center;
  justify-content:center;
}

.biz-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.biz-card__body{
  padding:18px;
}

.biz-card__body h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:600;
}

.biz-card__body p{
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:#3a3a3a;
}


/* Formulario */
.biz-form{
  background:#ffffff;
  padding:60px 0 90px;
}

.biz-form__inner{
  max-width:900px;
  margin:0 auto;
  padding:0 18px;
}

.biz-form__head h2{
  font-size:26px;
  margin-bottom:10px;
}

.biz-form__head p{
  margin-bottom:30px;
  font-size:15px;
  line-height:1.8;
}

.form{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:24px;
  box-shadow:0 18px 40px rgba(0,0,0,.06);
}

.form__row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form__field{
  margin-bottom:16px;
}

.form__field label{
  font-size:12px;
  display:block;
  margin-bottom:6px;
}

.form__field input,
.form__field textarea{
  width:100%;
  padding:12px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  font-family:inherit;
  font-size:14px;
  outline:none;
}

.form__field input:focus,
.form__field textarea:focus{
  border-color:#2b2b2b;
}

.form__btn{
  margin-top:10px;
  width:160px;
  height:44px;
  background:#2b2b2b;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:10px;
  letter-spacing:.8px;
  text-transform:uppercase;
  cursor:pointer;
  transition:.2s;
}

.form__btn:hover{
  background:#232323;
  transform:translateY(-1px);
}

/* Responsive */
@media (max-width:980px){

  .biz-hero{
    height:360px;
  }

  .biz__grid{
    grid-template-columns:1fr;
    gap:40px;
  }

  .form__row{
    grid-template-columns:1fr;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: linear-gradient(#1e1e1e, #1a1a1a);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Columna marca */
.footer__brand-logo {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.footer__brand-tagline {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
  margin: 0 0 22px;
  max-width: 220px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}

.footer__social-link:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.05);
}

/* Columnas de nav */
.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.footer__nav {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

.footer__nav a:hover { color: #fff; }

/* Columna contacto */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__contact-icon {
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  opacity: .6;
}

.footer__contact-item p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.footer__contact-item a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}

.footer__contact-item a:hover { color: #fff; }

/* Barra inferior */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .2s;
}

.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* Responsive footer */
@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* BOTÓN FLOTANTE */
.whatsapp-button {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.6);
  cursor: pointer;
  z-index: 100;
  transition: transform .25s ease;
}

.whatsapp-button:hover {
  transform: scale(1.05);
}

.whatsapp-button img {
  width: 30px;
  height: 30px;
}

/* VENTANA DE CHAT */
.whatsapp-chat {
  position: fixed;
  right: 1.2rem;
  bottom: 5.4rem;
  width: min(360px, 92vw);
  max-height: 420px;
  background: #020505;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: .2s ease;
  z-index: 99;
}

.whatsapp-chat.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* HEADER */
.wa-chat-header {
  background: linear-gradient(135deg, #075e54, #128c7e);
  padding: .7rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: white;
}

.wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-chat-close {
  cursor: pointer;
  font-size: 1.2rem;
}

/* MENSAJES */
.wa-chat-body {
  flex: 1;
  padding: .7rem;
  overflow-y: auto;
  background: url("assets/whatsapp_pattern.jpg");
}

.wa-message {
  max-width: 80%;
  font-size: .8rem;
  padding: .45rem .6rem;
  border-radius: 12px;
  margin-bottom: .4rem;
}

.wa-message.agent {
  background: #081b1b;
  color: #e9f5f1;
}

.wa-message.user {
  margin-left: auto;
  background: #075e54;
  color: white;
}

/* INPUT */
.wa-chat-input {
  display: flex;
  gap: .4rem;
  padding: .5rem;
  background: #020608;
}

.wa-chat-input input {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: .4rem .7rem;
  background: #050a0b;
  color: white;
}

.wa-send-btn {
  background: none;
  border: none;
  color: #25d366;
  font-size: 1.2rem;
  cursor: pointer;
}
/* =====================================================
   MÓVIL: imagen después del título en cada sección
===================================================== */
@media(max-width:980px){

  /* ── Hero ────────────────────────────────────────── */
  .hero          { height:auto; min-height:0; }
  .hero__left    { display:contents; }
  .hero__content { display:contents; }
  .hero__title   { order:-2; padding:28px 18px 8px; margin:0; }
  .hero__right   { order:-1; min-height:260px; }
  .hero__subtitle{ padding:0 18px; }
  .hero .btn-outline { margin:0 18px 28px; justify-self:start; }

  /* ── Soluciones ──────────────────────────────────── */
  .solutions__left  { display:contents; }
  .solutions__title { order:-2; }
  .solutions__right { order:-1; }
  .solutions__btn   { justify-self:start; }

  /* ── Why ─────────────────────────────────────────── */
  .why__left  { display:contents; }
  .why__title { order:-2; }
  .why__right { order:-1; }

  /* ── Contacto ────────────────────────────────────── */
  .contact__left  { display:contents; }
  .contact__inner { display:contents; }
  .contact__title { order:-2; padding:30px 18px 10px; margin:0; }
  .contact__right { order:-1; min-height:280px; }
  .contact__block { padding-left:18px; padding-right:18px; }
  .contact__note  { padding-left:18px; padding-right:18px; }
  .contact__cta   { padding:0 18px 40px; }
    /* ── WhatsApp: posición segura en móvil ─────────── */
  .whatsapp-button {
    right: 1rem;
    bottom: 1rem;
  }
  .whatsapp-chat {
    right: 1rem;
    bottom: 4.8rem;
    width: calc(100vw - 2rem);
  }

}
