/* ===================================
   GENERAL + FONDO GLOBAL PRO
=================================== */
*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
    margin:0;
    padding:0;
    font-family:"Poppins", sans-serif;
    color:#e9eef3;

    /* Fondo tipo Rioboberos */
    background:
        radial-gradient(1200px 600px at 10% -10%, #1b70c4 0%, transparent 60%),
        radial-gradient(1000px 700px at 90% 0%, #0cc39a 0%, transparent 55%),
        linear-gradient(170deg, #0e2a45 0%, #0d223a 35%, #0c1f33 60%, #0b2d2a 100%);
    background-attachment: fixed;
}

/* overlay suave */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-1;
    background:
        radial-gradient(900px 500px at 15% 20%, rgba(0,180,255,.12), transparent 60%),
        radial-gradient(900px 600px at 85% 15%, rgba(0,255,180,.10), transparent 65%),
        radial-gradient(1000px 800px at 50% 100%, rgba(0,0,0,.35), transparent 60%);
}

/* ===================================
   NAVBAR PRO (GLASS + BOTONES)
=================================== */
.navbar{
    position:fixed;
    top:0; left:0;
    width:100%;
    z-index:9999;

    background: rgba(10, 24, 38, 0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* contenedor interno */
.navbar-inner{
    max-width:1400px;
    margin:0 auto;
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
}

/* logo */
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:800;
    letter-spacing:.3px;
    color:#e9eef3;
    text-decoration:none;
}

.logo-badge{
    font-size:12px;
    font-weight:700;
    color:#9ee6c6;
    background: rgba(0,255,170,0.10);
    padding:4px 8px;
    border-radius:999px;
    border:1px solid rgba(0,255,170,0.22);
}

/* menu desktop */
.menu{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.menu a{
    color:#e9eef3;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    padding:9px 14px;
    border-radius:999px;
    background: rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    transition:.2s ease;
    display:inline-flex;
    align-items:center;
    gap:7px;
}

.menu a:hover{
    background: rgba(5, 247, 166, 0.12);
    border-color: rgba(37, 17, 153, 0.35);
    transform: translateY(-1px);
}

.menu a.active{
    background: linear-gradient(90deg, rgba(0,160,255,0.25), rgba(0,255,170,0.22));
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* hamburguesa */
.menu-movil-btn{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:#fff;
    padding:6px 10px;
    border-radius:10px;
    background: rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
}

/* menu móvil */
.menu-movil{
    display:none;
    flex-direction:column;
    gap:6px;

    background: rgba(10, 24, 38, 0.98);
    backdrop-filter: blur(12px);

    width:100%;
    padding:12px 12px 16px;
    position:fixed;
    top:64px;
    left:0;
    z-index:99999;

    border-bottom:1px solid rgba(255,255,255,0.06);
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

.menu-movil.open{
    display:flex;
    animation: slideDown .18s ease;
}

@keyframes slideDown{
    from{ transform:translateY(-10px); opacity:.4; }
    to{ transform:translateY(0); opacity:1; }
}

.menu-movil a{
    color:#e9eef3;
    text-decoration:none;
    font-weight:700;
    padding:10px 12px;
    border-radius:10px;
    background: rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.10);
}
.menu-movil a:hover{
    background: rgba(0,255,170,0.12);
    border-color: rgba(0,255,170,0.35);
}

/* responsive nav */
@media (max-width:768px){
    .menu{ display:none; }
    .menu-movil-btn{ display:block; }
    .navbar-inner{ padding:12px 12px; }
}

/* ===================================
   SUBMENÚ DESKTOP + MÓVIL
=================================== */
.menu-item-parent{
  position:relative;
  display:inline-block;
}
.menu-item-parent > a{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.submenu{
  position:absolute;
  top:100%;
  left:0;
  min-width:210px;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
  padding:8px;
  display:none;
  z-index:999999;
}
.submenu a{
  color:#333 !important;
  padding:8px 10px;
  display:block;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
}
.submenu a:hover{ background:#f3f6f9; }
.menu-item-parent:hover .submenu{ display:block; }

.menu-icon{
  font-size:16px;
  line-height:1;
}

.submenu-movil{
  padding-left:22px !important;
  opacity:.9;
  font-size:14px;
}

/* ===================================
   SLIDER / HERO
=================================== */
.slider{
    margin-top:80px;
    width:100%;
    height:380px;
    background:url('../img/slider.jpg') center/cover no-repeat;
    border-radius:0 0 25px 25px;
}

/* slider fade profesional */
.slider-fade-container{
    width:100%;
    height:380px;
    margin-top:80px;
    position:relative;
    overflow:hidden;
    border-radius:0 0 25px 25px;
}
.slide-fade{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 1.4s ease-in-out;
}
.slide-fade img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.slide-fade.active{ opacity:1; }

@media (max-width:768px){
    .slider{ height:260px; }
    .slider-fade-container{ height:260px; }
}
@media (max-width:480px){
    .slider{ height:200px; }
    .slider-fade-container{ height:200px; }
}

/* ===================================
   TITULOS / SECCIONES
=================================== */
.titulo{
    text-align:center;
    margin:40px 20px 10px;
    font-size:32px;
    color:#e9eef3;
}

/* secciones más anchas y pegadas */
.section{
    width:100%;
    max-width:1400px;
    margin:6px auto;
    padding:10px 20px;
}

/* títulos internos */
.section h2{
    color:#2e6e4c;
    border-left:6px solid #2e6e4c;
    padding-left:10px;
    font-size:26px;
    margin:0 0 6px 0;
    line-height:1.2;
}

/* controlar aire */
.section p{
    margin:6px 0;
}

/* laptops/tablets */
@media(max-width:1200px){
    .section{ max-width: calc(100% - 32px); }
}
/* celulares */
@media(max-width:768px){
    .section{
    max-width: calc(100% - 16px);
    margin:4px auto;
    padding:10px 16px;
    }
}

/* ===================================
   GRID
=================================== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
    gap:25px;
}

/* ===================================
   CARDS
=================================== */
.card{
    background:#fff;
    border-radius:18px;
    padding:15px;
    box-shadow:0 3px 12px rgba(0,0,0,0.15);
    transition:transform .2s;
    color:#111;
}
.card:hover{ transform:scale(1.03); }
.card img{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:14px;
}

/* ===================================
   BLOQUES ESPECIALES (texto + imagen)
=================================== */
.bloque-ti{
    display:flex;
    gap:20px;
}
.bloque-ti-texto{ flex:1; }
.bloque-ti-imagen img{
    width:100%;
    border-radius:12px;
}

/* columnas */
.bloque-2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}
.bloque-3{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:20px;
}

@media(max-width:768px){
    .bloque-ti{ flex-direction:column; }
    .bloque-2, .bloque-3{ grid-template-columns:1fr; }
}

/* ===================================
   BLOQUE REAL (CONTENEDOR EXTERNO)
=================================== */
.bloque{
    width:100%;
    max-width:1400px;
    margin:3px auto;   /* ultra pegado */
    padding:0;
    position:relative;
    border-radius:12px;
    background:transparent;
}

/* título opcional fuera del iframe */
.bloque h2{
    margin:0 0 6px 0;
    line-height:1.2;
    color:#e9eef3;
}

/* controlar aire de párrafos */
.bloque p{
    margin:6px 0;
}

/* laptops/tablets */
@media(max-width:1200px){
    .bloque{ max-width: calc(100% - 32px); }
}
/* celulares */
@media(max-width:768px){
    .bloque{
        max-width: calc(100% - 16px);
        margin:2px auto;
    }
}

/* iframe aislado */
.bloque-html iframe{
    width:100%;
    border:0;
    overflow:hidden;
}

/* ===================================
   UTIL: texto oscuro en contenedores blancos
=================================== */
.section, .card, .blog-card, .posada-card{
    color:#111;
}

/* ===================================
   ACCIONES BONITAS EN TABLAS (ADMIN)
=================================== */
.admin-table td:last-child{ white-space:normal; }

.acciones{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.acciones a,
.acciones span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    border-radius:9px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    line-height:1;
    min-width:90px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
    transition:.15s ease;
}

.acciones a:hover{
    transform:translateY(-1px);
    opacity:.95;
}

.acciones .disabled{
    background:#9a9a9a !important;
    color:#eee !important;
    pointer-events:none;
    opacity:.6;
    box-shadow:none;
    transform:none;
}

@media(max-width:640px){
    .acciones a,
    .acciones span{
        min-width:unset;
        font-size:12px;
        padding:6px 8px;
    }
}
/* Logo img en cabecera */
.logo-img{
    height: 64px;       /* tamaño grande en PC */
    width: 70px;
    display: block;
    object-fit: contain;
}

/* móvil un poco más chico */
@media(max-width:768px){
    .logo-img{
        height: 50px;
    }
}

/* si ves que la cabecera queda apretada */
.navbar-inner{
    padding: 16px 18px;
}
/* ✅ LOGO grande real */
.logo{
    display:flex;
    align-items:center;
}

.logo-img{
    height: 45px;   /* tamaño en PC */
    width: auto;
    object-fit: contain;
    display:block;
}

/* móvil */
@media(max-width:768px){
    .logo-img{
        height: 52px;
    }
}

/* si quieres más alto el header para que respire */
.navbar{
    padding-top: 1px;
    padding-bottom: 1px;
}

/* ====== FIX FINAL NAVBAR FIJO (NO MONTA CONTENIDO) ====== */
body{
  padding-top:72px; /* igualito al alto del navbar */
}

/* navbar con alto real fijo */
.navbar{
  height:72px;
  min-height:72px;
}

/* asegurar alineación */
.navbar-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px; /* sin padding vertical para no crecer */
}

/* evitar que el logo empuje el header */
.navbar img{
  max-height:56px;
  object-fit:contain;
}

/* burbuja pegada */
.navbar .logo-badge{
  margin-left:2px;
  line-height:1;
}

/* ===================================
   BANNER GLOBAL POR PÁGINA (AUTO)
   usado por includes/banner_section.php
=================================== */
.page-banner{
  width:100%;
  margin-top:10px;           /* pegado al header */
  padding:0 14px;
}

.page-banner-inner{
  max-width:1400px;
  margin:0 auto;

  /* ✅ TAMAÑO GRANDE (como tu recuadro rojo) */
  height:380px;
  min-height:380px;

  border-radius:18px;
  position:relative;
  overflow:hidden;

  background-size:cover;
  background-position:center;

  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 12px 30px rgba(0,0,0,.30);

  display:flex;
  align-items:flex-end;
}

/* overlay oscuro para lectura del texto */
/* ===================================
   BANNER GLOBAL POR PÁGINA (AUTO) - FIX TAMAÑO PRO
   (pegar al FINAL de estilos.css)
=================================== */

:root{
  --banner-h: 320px;    /* alto PC (ajusta aquí si quieres más) */
  --banner-h-m: 220px;  /* alto móvil */
}

.page-banner{
  width:100%;
  margin-top:12px;      /* pegado al header */
  padding:0 14px;
}

.page-banner-inner{
  max-width:1400px;
  margin:0 auto;

  /* ✅ tamaño grande real */
  min-height: var(--banner-h) !important;
  height: var(--banner-h);

  border-radius:18px;
  position:relative;
  overflow:hidden;

  background-size:cover;
  background-position:center;

  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 12px 30px rgba(0,0,0,.30);

  display:flex;
  align-items:flex-end;
}

/* overlay oscuro elegante */
.page-banner-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(3,8,14,.20) 0%,
      rgba(3,8,14,.55) 60%,
      rgba(3,8,14,.90) 100%);
}

/* contenido */
.page-banner-content{
  position:relative;
  z-index:2;
  padding:22px;
  color:#fff;
  width:100%;
}

.page-banner-content h2{
  margin:0 0 6px 0;
  font-size:clamp(22px, 3vw, 34px);
  font-weight:800;
  letter-spacing:.3px;
  text-shadow:0 6px 20px rgba(0,0,0,.45);
}

.page-banner-content p{
  margin:0;
  max-width:820px;
  font-size:clamp(13.5px, 1.6vw, 16px);
  color:rgba(255,255,255,.92);
  text-shadow:0 4px 14px rgba(0,0,0,.45);
}

/* responsive */
@media(max-width:768px){
  .page-banner-inner{
    min-height: var(--banner-h-m) !important;
    height: var(--banner-h-m);
    border-radius:14px;
  }
  .page-banner-content{ padding:16px; }
}

/* ===================================
   USUARIO EN NAVBAR (AVATAR + NOMBRE + SALIR)
=================================== */

/* contenedor derecho (zona rojo/verde) */
.nav-user-area{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:10px;
}

/* burbuja con avatar + nombre */
.nav-user-box{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.85);
  border:1px solid rgba(148,163,184,.45);
}

/* avatar redondo */
.nav-user-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  overflow:hidden;
  background:#020617;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.nav-user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* letra cuando no hay foto */
.nav-user-letter{
  color:#e5e7eb;
  font-weight:600;
  font-size:14px;
}

/* nombre (verde de tu recuadro) */
.nav-user-name{
  color:#e5e7eb;
  font-size:14px;
  font-weight:600;
  max-width:140px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* botón Salir en desktop (sobrescribe estilo general de .menu a) */
.menu a.btn-salir,
.btn-salir{
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(248,250,252,.18);
  background:rgba(15,23,42,.95);
  color:#e5e7eb;
  font-size:14px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.menu a.btn-salir:hover,
.btn-salir:hover{
  filter:brightness(1.05);
  box-shadow:0 8px 20px rgba(15,23,42,.7);
}

/* versión móvil (bloque arriba del menú) */
.nav-user-area-mobile{
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.35);
}


/* =========================================
   ESTILOS DEL PROMPT DINÁMICO (BLOQUEO)
   ========================================= */
.comu-cta-pro {
    position: relative;
    border-radius: 16px;
    padding: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    margin: 20px 0;
    transition: transform 0.3s ease;
}

/* Efecto de brillo de fondo */
.cta-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Caja del Icono */
.cta-icon-box {
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

.cta-emoji {
    line-height: 1;
}

/* Textos */
.cta-text {
    flex: 1;
}

.cta-text h3 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.cta-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Botones */
.cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.btn-cta-login, .btn-cta-register {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* Botón Login (Azul Brillante) */
.btn-cta-login {
    background: #3b82f6;
    color: white !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
    border: 1px solid transparent;
}

.btn-cta-login:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
}

/* Botón Registro (Transparente con borde) */
.btn-cta-register {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: inherit; /* Hereda el color del texto configurado */
}

.btn-cta-register:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* RESPONSIVE: Para celulares */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-cta-login, .btn-cta-register {
        width: 100%;
    }
    
    .cta-text h3 {
        font-size: 1.2rem;
    }
}