:root{
  --header-h: 0; /* ajusta si tu header es más alto */
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --wine: #7a1f2b;
  --wine-2: #5e1821;
  --sand: #f3e4cf;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --radius: 18px;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.site-header{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1100;
  background: #f7f7f7;
  border-bottom: 1px solid #e6e6e6;
}

/* Evita que el contenido se meta debajo */
main{
  padding-top: var(--header-h);
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.logos{
  display: flex;
  gap: 8px;
  align-items: center;
}

.logo-img{
  height: 100px;          /* ajusta según tu diseño */
  width: auto;
  object-fit: contain;
  display: block;
}


.logo-placeholder{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e9e9e9;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #555;
}
.brand-title{
  font-weight: 700;
  font-size: 14px;
}
.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav a{
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{ color: var(--wine); }

.search-btn{
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}

.burger{
  display: none;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

/* Dropdown */
.dropdown{ position: relative; }
.dropbtn{
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #444;
  padding: 8px 4px;
}
.dropbtn:hover{ color: var(--wine); }
.dropdown-content{
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dropdown-content a{
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  color: #333;
}
.dropdown-content a:hover{
  background: #fafafa;
  color: var(--wine);
}
.dropdown:hover .dropdown-content{ display: block; }


/* ===== HERO SLIDER LOOK (tipo tu ejemplo) ===== */
.hero {
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  height: clamp(100px, 70vh, 470px);
  overflow: hidden;
  background: #111;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform 1.4s ease;
  background-size: cover;
  background-position: center;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Overlay oscuro */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* Contenido centrado */
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  gap: 18px;
}

.slide-kicker {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: clamp(46px, 2vw, 50px);
  opacity: .95;
}

.slide-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(28px, 4vw, 56px);
  text-shadow: 0 10px 24px rgba(0,0,0,.45);
}

/* Botones */
.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
  background: rgba(0,0,0,.20);
  transition: transform .15s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }

.btn.primary {
  background: rgba(122,14,26,.92);
  border-color: rgba(122,14,26,1);
}

.btn.primary:hover { background: rgba(122,14,26,1); }

.btn.outline {
  background: rgba(0,0,0,.15);
}

/* Flechas (si no las tienes bonitas) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
}

.slider-btn.prev { left: 18px; }
.slider-btn.next { right: 18px; }

/* Dots (si tu script los genera) */
.dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
}
/* Bottom bar */
.bottom-bar{
  background: #2c79b8;
  color: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bottom-item{
  max-width: 1200px;
  margin: 0 auto;
}
.bottom-label{
  opacity: .85;
  font-size: 12px;
  font-weight: 700;
}
.bottom-value{
  font-size: 16px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 980px){
  .nav{ display: none; }
  .burger{ display: inline-flex; }
  .hero-grid{ grid-template-columns: 1fr; max-width: 520px; }
  .dots{ bottom: 96px; }
  .bottom-bar{ grid-template-columns: 1fr; }
}
/* Footer */
.site-footer{
  
  background: linear-gradient(
    135deg,
    #0B7EBE 0%,
    #0063A6 60%,
    #1D3E74 100%
  );
  color: #eaeaea;
  border-top: 0px solid #6b1d25; /* franja vino */
}

.footer-top{
  padding: 44px 14px 26px;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

/* Col 1 */
.footer-logos{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-logo{
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-divider{
  width: 1px;
  height: 70px;
  background: rgba(255,255,255,.25);
}

.footer-note{
  margin: 0;
  line-height: 1.35;
  color: #f0f0f0;
  font-weight: 500;
}

/* Col 2 */
.footer-title{
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.footer-links a{
  color: #e9e9e9;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.footer-links a:hover{
  color: #ffffff;
  text-decoration: underline;
}

/* Col 3 map */
.footer-map{
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.footer-map iframe{
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* Bottom bar */
.footer-bottom{
  border-top: 1px solid rgba(255, 255, 255, 0.842);
  background: #13a4d5;
  padding: 16px 14px;
}
.footer-bottom-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-copy{
  font-size: 13px;
  color: rgba(255,255,255,.8);
}
.footer-privacy{
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
}
.footer-privacy:hover{
  color: #fff;
  text-decoration: underline;
}

/* Social icons (sin librerías) */
.footer-social{
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  opacity: .95;
}
.social-btn:hover{
  opacity: 1;
  background: rgba(255,255,255,.10);
}

/* Back to top button */
.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,.95);
  background: rgb(11,126,190);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.back-to-top .arrow{
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}
.back-to-top .text{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}
.back-to-top:hover{
  background: rgba(0,110,222 ); 
}

.footer-top{
  padding: 44px 14px 26px;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Solo el layout de columnas del footer (parte superior) */
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

/* Responsive */
@media (max-width: 980px){
  .footer-container{
    grid-template-columns: 1fr;
  }
  .footer-map{
    max-width: 100%;
  }
  .footer-bottom-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================= */
/* MOBILE RESPONSIVE FIXES       */
/* ============================= */

/* Evita desbordamientos en móvil */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* Contenedores respiren en móvil */
@media (max-width: 980px){
  .header-inner{
    padding: 10px 12px;
  }

  .brand{
    min-width: 0;
  }

  .brand-title{
    font-size: 13px;
  }

  .brand-subtitle{
    font-size: 11px;
  }

  /* Menú: oculta nav y usa burger */
  .nav{ display: none; }
  .burger{ display: inline-flex; }
}

/* Hero/slider: ajusta altura para pantallas pequeñas */
@media (max-width: 768px){
  .slider{
    height: auto;
  }

  .slides{
    /* Si tu hero es solo color, esto define altura bonita en móvil */
    aspect-ratio: 16 / 10;
  }

  .slider-btn{
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .dots{
    bottom: 16px;
  }
}

/* Footer: 1 columna y mapa full */
@media (max-width: 980px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-map{
    max-width: 100%;
  }

  .footer-map iframe{
    height: 220px;
  }

  .footer-bottom-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Menú móvil desplegable */
@media (max-width: 980px){
  .nav.is-open{
    display: flex;
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    z-index: 100;
  }

  .nav.is-open a,
  .nav.is-open .dropbtn{
    padding: 10px 8px;
    border-radius: 10px;
  }

  .dropdown-content{
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 8px;
  }

  .dropdown.is-open .dropdown-content{
    display: block;
  }
}

/* ============================= */
/* FOOTER RESPONSIVE (MÓVIL)     */
/* ============================= */

@media (max-width: 980px){

  /* Footer en una sola columna */
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Logos más chicos */
  .footer-logo{
    height: 85px;
  }

  .footer-divider{
    height: 70px;
  }

  /* Mapa ocupa todo el ancho */
  .footer-map{
    max-width: 100%;
  }

  .footer-map iframe{
    width: 100%;
    height: 220px;
  }

  /* Barra inferior en columna */
  .footer-bottom-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================
   Portal Section (aislado)
   ========================== */
.portal-section{
  background:#fff;
  padding: 64px 16px;
}

.portal-container{
  max-width: 1100px;
  margin: 0 auto;
}

.portal-title{
  text-align:center;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 28px;
  font-weight: 700;
  color:#222;
}

/* Acordeón */
.portal-accordion{
  max-width: 720px;
  margin: 0 auto 50px;
  border-top: 1px solid #e7e7e7;
}

.portal-item{
  border-bottom: 1px solid #e7e7e7;
  padding: 0;
}

.portal-item summary{
  cursor:pointer;
  list-style:none;
  padding: 14px 10px;
  font-weight: 600;
  color:#2a2a2a;
  display:flex;
  align-items:center;
  gap:10px;
}

.portal-item summary::-webkit-details-marker{ display:none; }

.portal-item summary::before{
  content:"▶";
  font-size: 12px;
  transform: translateY(-1px);
  opacity:.75;
}

.portal-item[open] summary::before{
  content:"▼";
}

.portal-body{
  padding: 0 10px 14px 28px;
  color:#555;
  font-size: 14px;
}

.portal-body p{
  margin: 8px 0 10px;
}

.portal-link{
  color:#000000;
  text-decoration:none;
  font-weight: 600;
}

.portal-link:hover{
  text-decoration: underline;
}

/* Cards (3 columnas) */
.portal-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-top: 10px;
}

.portal-card{
  text-align:center;
  padding: 26px 18px;
  background:#fff;
}

.portal-icon{
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
  opacity:.9;
}

.portal-card-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color:#2a2a2a;
}

.portal-card-text{
  margin: 0 auto 18px;
  max-width: 280px;
  color:#5a5a5a;
  font-size: 13.5px;
  line-height: 1.5;
}

.portal-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e44b1f;   /* naranja como el ejemplo */
  color:#fff;
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, filter .2s ease;
}

.portal-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.97);
}

/* Responsive */
@media (max-width: 900px){
  .portal-cards{
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}
