: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;
}

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.5;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
}

button,
input,
select,
textarea{
  font:inherit;
}

.contenedor{
  width:min(1200px, 92%);
  margin:0 auto;
}

/* ================= HEADER ================= */

.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;
}

.nav__logo{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  position:relative;
  z-index:2100;
}

.nav__logo img{
  height:75px;
  width:auto;
  display:block;
}

.nav__links{
  display:flex;
  align-items:center;
  gap:30px;
}

.nav__link{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:16px;
  background:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:opacity .25s ease, background .25s ease;
}

.nav__link:hover{
  opacity:.8;
}

.nav__link.is-active{
  border-bottom:2px solid #7bd6d0;
  padding-bottom:4px;
}

.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;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .25s ease, transform .25s ease;
}

.nav__btn:hover{
  background:#2bb6b2;
  transform:translateY(-1px);
}

/* ================= DROPDOWN ================= */

.nav__dropdown{
  position:relative;
}

.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;
}

.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;
  position:relative;
  z-index:3100;
  flex-shrink:0;
}

.nav__toggle span{
  display:block;
  width:28px;
  height:3px;
  margin:6px auto;
  background:#fff;
  border-radius:2px;
  transition:.25s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(9px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-9px) rotate(-45deg);
}

/* ================= HERO ================= */

.hero{
  min-height:410px;
  background:url("../img/fondoinicio.jpeg") center/cover no-repeat;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
  z-index:1;
}

.hero-contenido{
  position:relative;
  text-align:center;
  z-index:2;
  width:min(90%, 800px);
  padding:20px;
}

.letra{
  color:var(--card);
}

.hero-contenido h1{
  font-size:clamp(2rem, 5vw, 3.5rem);
  letter-spacing:1px;
  margin-bottom:10px;
}

.hero-contenido p{
  font-size:clamp(1rem, 2vw, 1.25rem);
  margin-bottom:22px;
}

.btn-principal{
  display:inline-block;
  margin-top:8px;
  background:var(--accent);
  padding:14px 26px;
  color:#fff;
  text-decoration:none;
  border-radius:30px;
  font-weight:600;
  transition:background .3s ease, transform .3s ease;
  border:none;
  cursor:pointer;
}

.btn-principal:hover{
  background:var(--accent-dark);
  transform:translateY(-2px);
}

/* ================= QUIENES SOMOS ================= */

.quienes{
  display:flex;
  align-items:stretch;
  background:#f2f2f2;
  min-height:360px;
}

.quienes-img{
  width:45%;
}

.quienes-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.quienes-texto{
  width:55%;
  padding:50px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.quienes-texto h2{
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  color:var(--dark);
  margin-bottom:16px;
}

.quienes-texto p{
  font-size:1.05rem;
  color:var(--muted);
  max-width:650px;
}

/* ================= STATS ================= */

.stats{
  display:flex;
  justify-content:space-around;
  align-items:center;
  gap:20px;
  background:var(--dark);
  color:#fff;
  padding:40px 20px;
  text-align:center;
}

.stats div{
  flex:1;
}

.stats h3{
  font-size:clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom:8px;
}

.stats p{
  font-size:1rem;
  color:#e9f4f4;
}

/* ================= 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;
}

.footer-links a{
  color:#fff;
  text-decoration:none;
  font-size:13px;
  opacity:.9;
  transition:color .3s ease;
}

.footer-links a:hover{
  color:var(--accent);
}

.footer-contact{
  list-style:none;
  display:grid;
  gap:10px;
  font-size:13px;
  opacity:.9;
}

.footer-muted{
  font-size:13px;
  opacity:.85;
  margin-bottom:10px;
}

.social{
  display:flex;
  gap:12px;
  margin-top:10px;
}

.social a{
  width:34px;
  height:34px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
  text-decoration:none;
  transition:background .3s ease, transform .25s ease, box-shadow .25s ease;
}

.social a:hover{
  background:var(--accent);
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.footer-bottom{
  text-align:center;
  padding:18px 12px;
  margin-top:28px;
  color:var(--accent);
  font-size:13px;
  border-top:1px solid rgba(255,255,255,0.08);
}

/* ================= 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;
  max-width:calc(100vw - 24px);
  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;
  font-family:inherit;
}

.chatbot-send{
  border:none;
  background:var(--accent);
  color:#fff;
  padding:0 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}

.chatbot-send:active{
  background:var(--accent-dark);
}

/* ================= RESPONSIVE HEADER ================= */

@media (max-width:980px){
  .nav__links{
    gap:18px;
  }

  .nav__actions{
    gap:12px;
  }
}

/* ================= TABLET ================= */

@media (max-width:992px){
  .quienes{
    min-height:auto;
  }

  .quienes-texto{
    padding:36px;
  }

  .stats{
    gap:16px;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

/* ================= HEADER MOBILE / TABLET ================= */

@media (max-width:820px){
  .nav{
    padding:12px 0;
  }

  .nav__container{
    padding:0 16px;
  }

  .nav__logo img{
    height:60px;
  }

  .nav__toggle{
    display:block;
  }

  .nav__links{
    display:none;
    position:absolute;
    top:100%;
    left:12px;
    right:12px;
    background:#15545c;
    border:1px solid rgba(255,255,255,0.15);
    border-radius:16px;
    padding:14px 16px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    box-shadow:0 16px 30px rgba(0,0,0,.18);
    z-index:3000;
  }

  .nav__links.is-open{
    display:flex;
  }

  .nav__link{
    width:100%;
    justify-content:space-between;
    text-align:left;
    padding:12px 10px;
    border-radius:10px;
  }

  .nav__link:hover{
    background:rgba(255,255,255,0.08);
    opacity:1;
  }

  .nav__link.is-active{
    border-bottom:none;
    background:rgba(255,255,255,0.08);
  }

  .nav__actions{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding-top:10px;
    margin-top:6px;
    border-top:1px solid rgba(255,255,255,0.15);
    width:100%;
  }

  .nav__btn,
  .nav__login,
  .nav__langbtn{
    width:100%;
    text-align:center;
    justify-content:center;
  }

  .nav__login{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 10px;
    border-radius:10px;
    text-decoration:none;
  }

  .nav__login:hover{
    background:rgba(255,255,255,0.08);
  }

  .nav__btn{
    padding:12px 16px;
  }

  .nav__dropdown{
    width:100%;
  }

  .nav__dropmenu{
    position:static;
    margin-top:6px;
    min-width:auto;
    box-shadow:none;
    border-radius:10px;
  }

  .hero{
    min-height:360px;
  }

  .hero-contenido{
    width:min(92%, 650px);
  }

  .quienes{
    flex-direction:column;
  }

  .quienes-img,
  .quienes-texto{
    width:100%;
  }

  .quienes-img{
    min-height:280px;
  }

  .stats{
    flex-wrap:wrap;
  }

  .stats div{
    min-width:220px;
  }
}

/* ================= MOBILE ================= */

@media (max-width:640px){
  .nav__container{
    gap:12px;
  }

  .nav__logo img{
    height:52px;
  }

  .hero{
    min-height:320px;
  }

  .hero-contenido h1{
    font-size:2rem;
  }

  .hero-contenido p{
    font-size:1rem;
  }

  .btn-principal{
    padding:12px 22px;
    font-size:.95rem;
  }

  .quienes-texto{
    padding:28px 20px;
  }

  .quienes-texto p{
    font-size:.98rem;
  }

  .stats{
    flex-direction:column;
    gap:24px;
    padding:32px 20px;
  }

  .footer{
    padding-top:40px;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

  .chatbot{
    right:12px;
    bottom:12px;
  }

  .chatbot-window{
    width:min(320px, calc(100vw - 24px));
    bottom:74px;
  }
}

/* ================= SMALL MOBILE ================= */

@media (max-width:420px){
  .nav__container{
    padding:0 12px;
  }

  .nav__links{
    left:8px;
    right:8px;
    padding:12px;
  }

  .hero-contenido{
    padding:16px;
  }

  .hero-contenido h1{
    font-size:1.7rem;
  }

  .btn-principal{
    width:100%;
    max-width:280px;
  }

  .chatbot-window{
    width:calc(100vw - 16px);
    max-width:none;
    right:-4px;
  }
}