/* styles.css */
:root{
  --dark:#0D3B45;
  --accent:#2EB6B3;
  --accent-dark:#1FA6A3;
  --text:#1f1f1f;
  --muted:#6e6e6e;
  --ok:#45b35f;
  --card:#e9e9e9;
  --shadow:0 18px 50px rgba(0,0,0,.18);
  --radius:18px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}

.container{
  width:min(1200px, 92%);
  margin:0 auto;
}

.nav{
  background:#15545c;
  padding:14px 0;
  position:relative;
  z-index:2000;
}

.nav__container{
  max-width:1200px;
  margin:auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:relative;
}

/* LOGO */

.nav__logo{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
}

.nav__logo img{
  height:75px;
  display:block;
}

/* LINKS */

.nav__links{
  display:flex;
  align-items:center;
  gap:30px;
}

.nav__link{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  background:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.nav__link:hover{
  opacity:.8;
}

.nav__link.is-active{
  border-bottom:2px solid #7bd6d0;
  padding-bottom:4px;
}

/* ACCIONES */

.nav__actions{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav__login{
  color:#fff;
  text-decoration:none;
  font-weight:500;
}

.nav__btn{
  background:#36c7c3;
  color:#fff;
  padding:10px 20px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
}

/* ================= DROPDOWN ================= */

.nav__dropdown{
  position:relative;
}

.nav__dropbtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.nav__arrow{
  font-size:14px;
  transition:transform .2s ease;
}

.nav__dropdown.is-open .nav__arrow{
  transform:rotate(180deg);
}

.nav__dropmenu{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  background:#0c3c45;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  padding:8px;
  min-width:280px;
  z-index:3000;
  box-shadow:var(--shadow);
}

.nav__dropmenu a,
.lang-item{
  display:block;
  width:100%;
  color:#eaf6f7;
  text-decoration:none;
  padding:10px;
  border-radius:10px;
  font-size:15px;
  background:transparent;
  border:none;
  text-align:left;
  cursor:pointer;
}

.nav__dropmenu a:hover,
.lang-item:hover{
  background:rgba(255,255,255,0.08);
}

.nav__dropdown.is-open .nav__dropmenu{
  display:block;
}

/* idioma */

.nav__langbtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:none;
  border:none;
  color:#eaf6f7;
  cursor:pointer;
  font-size:16px;
}

.nav__world{
  font-size:18px;
}

.nav__dropmenu--right{
  left:auto;
  right:0;
  min-width:160px;
}

/* ===== Hamburguesa ===== */
.nav__toggle{
  display:none;
  width:42px;
  height:42px;
  border:none;
  background:transparent;
  cursor:pointer;
  flex-shrink:0;
}

.nav__toggle span{
  display:block;
  height:3px;
  margin:7px 0;
  background:#eaf6f7;
  border-radius:2px;
  transition:all .25s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(10px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-10px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width:1100px){
  .nav__container{
    gap:18px;
  }

  .nav__links{
    gap:20px;
  }

  .nav__actions{
    gap:14px;
    margin-left:8px;
  }

  .nav__link,
  .nav__login,
  .nav__langbtn{
    font-size:15px;
  }

  .nav__btn{
    font-size:15px;
    padding:10px 16px;
  }

  .nav__dropmenu{
    min-width:240px;
  }
}

/* Móvil */
@media (max-width:820px){
  .nav__container{
    position:relative;
  }

  .nav__toggle{
    display:block;
  }

  .nav__links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    margin-top:10px;
    background:#15545c;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:16px;
    padding:14px 16px;
    box-shadow:0 16px 30px rgba(0,0,0,.18);
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:10px;
    z-index:1000;
  }

  .nav__links.is-open{
    display:flex;
  }

  .nav__link,
  .nav__dropbtn,
  .nav__login,
  .nav__langbtn{
    width:100%;
    justify-content:space-between;
    text-align:left;
    padding:12px 10px;
    border-radius:10px;
    border-bottom:none;
  }

  .nav__link.is-active{
    border-bottom-color:transparent;
    background:rgba(255,255,255,0.08);
  }

  .nav__actions{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding-top:10px;
    margin-top:6px;
    margin-left:0;
    border-top:1px solid rgba(255,255,255,0.15);
  }

  .nav__btn{
    width:100%;
    text-align:center;
  }

  .nav__dropmenu{
    position:static;
    margin-top:6px;
    min-width:auto;
    box-shadow:none;
  }

  .nav__dropmenu--right{
    right:auto;
  }
}

/* ===== Banner ===== */
.banner img{
  width:100%;
  height:340px;
  object-fit:cover;
  display:block;
}

/* ===== Secciones ===== */
.section{
  padding:80px 0;
}

.kicker{
  color:var(--muted);
  text-align:center;
  margin-bottom:12px;
  font-size:14px;
}

.title-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin:10px auto 14px;
  max-width:980px;
  padding:0 10px;
}

.title-bar{
  width:76px;
  height:6px;
  border-radius:999px;
  background:var(--accent);
}

.title-main{
  font-family:'Playfair Display', serif;
  color:var(--accent);
  font-size:clamp(28px, 3.2vw, 44px);
  line-height:1.08;
  text-align:center;
}

.lead{
  text-align:center;
  color:#333;
  max-width:860px;
  margin:0 auto;
  font-size:15px;
  padding:0 12px;
}

/* ===== Servicios cards ===== */
.services{
  margin-top:40px;
  display:flex;
  justify-content:center;
  gap:clamp(22px, 4vw, 80px);
  flex-wrap:wrap;
}

.service-btn{
  width:220px;
  background:transparent;
  border:none;
  cursor:pointer;
  text-align:center;
  padding:10px 10px 14px;
  border-radius:14px;
  transition:.2s ease;
}

.service-btn:hover{
  background:rgba(46,182,179,0.08);
}

.service-btn.is-active{
  background:rgba(46,182,179,0.14);
}

.icon-circle{
  width:92px;
  height:92px;
  border:1.8px solid #111;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  color:#111;
}

.icon-svg{
  width:50px;
  height:50px;
  color:#111;
}

.service-label{
  display:block;
  font-weight:500;
  color:var(--accent);
  line-height:1.2;
}

/* ===== DETALLE SERVICIOS CORREGIDO ===== */
.service-detail-wrap{
  margin-top:30px;
  width:100%;
  display:flex;
  justify-content:center;
}

.detail-panel{
  display:none;
  width:min(920px, 100%);
  margin:0 auto;
  background:#f7f7f7;
  border:1px solid #e9e9e9;
  border-radius:18px;
  padding:28px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.detail-panel.is-visible{
  display:block;
}

.detail-card{
  display:none;
}

.detail-card.is-active{
  display:block;
}

.detail-card h3{
  font-family:'Playfair Display', serif;
  color:var(--dark);
  font-size:22px;
  margin-bottom:12px;
}

.detail-card p{
  color:#333;
  margin-bottom:12px;
  line-height:1.6;
}

.detail-list{
  margin-top:16px;
  padding-left:20px;
  color:#333;
}

.detail-list li{
  margin-bottom:8px;
}

.detail-actions{
  margin-top:20px;
  text-align:right;
}

.btn-solid{
  background:var(--dark);
  color:#fff;
  border:none;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}

.btn-solid:hover{
  filter:brightness(1.05);
}

.btn-solid:active{
  transform:scale(.99);
}

/* ===== Barra define ===== */
.define-bar{
  background:var(--dark);
  color:#fff;
  text-align:center;
  padding:18px 0;
}

.define-bar h2{
  font-family:'Playfair Display', serif;
  font-size:24px;
  font-weight:600;
}

/* ===== Misión / Visión 2 columnas ===== */
.mv-stack{
  display:grid;
  gap:24px;
}

.mv2{
  border:1px solid rgba(13,59,69,.10);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 14px 36px rgba(0,0,0,.10);
}

.mv2-head{
  background:var(--card);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.mv2-head h3{
  font-family:'Playfair Display', serif;
  font-size:24px;
  color:#111;
}

.mv2-icon{
  width:34px;
  height:34px;
  color:var(--accent);
}

.mv2-icon svg{
  width:34px;
  height:34px;
}

.mv2-grid{
  display:grid;
  grid-template-columns:1fr 1.05fr;
  align-items:stretch;
}

.mv2-media{
  min-height:260px;
  background:#f1f1f1;
}

.mv2-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.mv2-body{
  padding:20px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.mv2-body p{
  color:#333;
  font-size:14.8px;
  line-height:1.55;
  margin-bottom:12px;
}

.mv2-img-right .mv2-media{
  order:2;
}

.mv2-img-right .mv2-body{
  order:1;
}

.check-list{
  list-style:none;
  display:grid;
  gap:10px;
  padding:0;
}

.check-list li{
  position:relative;
  padding-left:26px;
  font-weight:600;
  color:#1d1d1d;
}

.check-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:7px;
  width:14px;
  height:8px;
  border-left:3px solid var(--ok);
  border-bottom:3px solid var(--ok);
  transform:rotate(-45deg);
}

/* Responsive MV */
@media (max-width:900px){
  .mv2-grid{
    grid-template-columns:1fr;
  }

  .mv2-img-right .mv2-media,
  .mv2-img-right .mv2-body{
    order:initial;
  }

  .mv2-media{
    min-height:210px;
  }
}

/* Reveal */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ===== Valores pilares ===== */
.values-head{
  text-align:center;
  margin-bottom:18px;
}

.values-subtitle{
  color:var(--muted);
  font-size:13px;
}

.vc{
  display:grid;
  grid-template-columns:52px 1fr 52px;
  align-items:center;
  gap:12px;
  justify-items:center;
  margin:0 auto;
  max-width:1040px;
}

.vc-arrow{
  width:44px;
  height:44px;
  border-radius:12px;
  border:none;
  cursor:pointer;
  background:rgba(46,182,179,0.14);
  color:var(--dark);
  font-size:30px;
  line-height:1;
  display:grid;
  place-items:center;
  transition:transform .15s ease, background .2s ease;
}

.vc-arrow:hover{
  background:rgba(46,182,179,0.22);
}

.vc-arrow:active{
  transform:scale(0.96);
}

.vc-viewport{
  width:min(820px, 100%);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:16px 18px;
  border-radius:22px;
  cursor:grab;
  user-select:none;
  -ms-overflow-style:none;
  scrollbar-width:none;
}

.vc-viewport::-webkit-scrollbar{
  display:none;
}

.vc-viewport.is-dragging{
  cursor:grabbing;
}

.vc-track{
  display:flex;
  gap:16px;
  align-items:stretch;
}

.vc2-card{
  scroll-snap-align:center;
  flex:0 0 320px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(13,59,69,.18);
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
  transition:transform .25s ease, box-shadow .25s ease;
  position:relative;
}

.vc2-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:6px;
  background:linear-gradient(90deg, var(--accent), #2dbfc5);
}

.vc2-media{
  height:170px;
  background:#f1f1f1;
}

.vc2-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.vc2-body{
  padding:16px 16px 18px;
  text-align:left;
}

.vc2-body h3{
  font-family:'Playfair Display', serif;
  font-size:22px;
  margin:0 0 6px;
  color:var(--dark);
}

.vc2-body p{
  margin:0;
  color:#2b2b2b;
  opacity:.9;
  font-size:13.5px;
  line-height:1.45;
}

.vc2-card.is-active{
  transform:scale(1.04);
  box-shadow:0 18px 44px rgba(0,0,0,.16);
}

.vc-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:12px;
}

.vc-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#d7d7d7;
  border:none;
  cursor:pointer;
}

.vc-dot.is-active{
  background:var(--accent);
}

@media (max-width:700px){
  .vc-viewport{
    width:100%;
  }

  .vc2-card{
    flex:0 0 86%;
  }

  .vc2-media{
    height:160px;
  }
}

@media (max-width:520px){
  .vc{
    grid-template-columns:40px 1fr 40px;
    gap:8px;
  }

  .vc-viewport{
    padding:14px 14px;
  }

  .vc2-card{
    flex:0 0 92%;
  }
}

/* CTA */
.cta{
  padding:70px 0 60px;
  text-align:center;
}

.cta-inner h2{
  font-family:'Playfair Display', serif;
  font-size:22px;
  margin-bottom:8px;
}

.cta-inner p{
  color:#333;
  margin-bottom:18px;
}

.btn-cta{
  display:inline-block;
  background:linear-gradient(135deg, var(--accent), #2dbfc5);
  color:#fff;
  text-decoration:none;
  padding:16px 40px;
  border-radius:999px;
  font-family:'Playfair Display', serif;
  font-size:18px;
  line-height:1.05;
  box-shadow:0 10px 22px rgba(46,182,179,.25);
  transition:transform .15s ease, filter .2s ease;
}

.btn-cta:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
}

.btn-cta:active{
  background:linear-gradient(135deg, var(--accent-dark), #199ea8);
  transform:translateY(1px) scale(0.99);
}

.cta-note{
  display:block;
  margin-top:10px;
  color:var(--muted);
}

/* Footer */
.footer{
  background:#000;
  color:#fff;
  padding:50px 0 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1.2fr 1fr;
  gap:30px;
  align-items:start;
}

.footer-col h4{
  font-size:16px;
  margin-bottom:12px;
  font-weight:600;
}

.footer-accent{
  color:var(--accent);
  font-size:13px;
  margin-bottom:14px;
}

.footer-map iframe{
  width:100%;
  height:140px;
  border:none;
  border-radius:8px;
}

.footer-links{
  list-style:none;
  display:grid;
  gap:10px;
  padding:0;
}

.footer-links a{
  color:#fff;
  text-decoration:none;
  font-size:13px;
  opacity:.9;
}

.footer-links a:hover{
  color:var(--accent);
}

.footer-contact{
  list-style:none;
  padding:0;
  display:grid;
  gap:10px;
  font-size:13px;
  opacity:.9;
}

.footer-muted{
  font-size:13px;
  opacity:.85;
  margin-bottom:10px;
}

.social{
  display:flex;
  gap:10px;
}

.social a{
  width:28px;
  height:28px;
  border-radius:6px;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

.social a:hover{
  background:var(--accent);
}

.footer-bottom{
  text-align:center;
  padding:18px 0;
  margin-top:28px;
  color:var(--accent);
  font-size:13px;
}

/* Chatbot */
.chatbot{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:999;
}

.chatbot-fab{
  width:64px;
  height:64px;
  border-radius:50%;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
}

.chatbot-fab img{
  width:64px;
  height:64px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.28));
}

.chatbot-window{
  position:absolute;
  right:0;
  bottom:78px;
  width:320px;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid #eee;
}

.chatbot-header{
  background:var(--dark);
  color:#fff;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.chatbot-close{
  border:none;
  background:transparent;
  color:#fff;
  cursor:pointer;
  font-size:16px;
}

.chatbot-body{
  padding:12px;
  height:220px;
  overflow:auto;
  background:#fafafa;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.msg{
  border-radius:10px;
  padding:10px;
  font-size:13px;
  border:1px solid #eee;
  background:#fff;
}

.msg-user{
  border-color:#d7f0ef;
}

.chatbot-form{
  display:flex;
  gap:8px;
  padding:10px;
  border-top:1px solid #eee;
  background:#fff;
}

.chatbot-input{
  flex:1;
  border:1px solid #ddd;
  border-radius:10px;
  padding:10px;
  outline:none;
}

.chatbot-send{
  border:none;
  background:var(--accent);
  color:#fff;
  padding:0 14px;
  border-radius:10px;
  cursor:pointer;
}

.chatbot-send:active{
  background:var(--accent-dark);
}

/* Footer responsive */
@media (max-width:980px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:640px){
  .footer-grid{
    grid-template-columns:1fr;
  }
}