/* Banner Image */
.mybanner {
  min-width: 100%;
}

/* TOPBAR */

.mobile-logo {
	display: none;
  	margin-left: 20px;
}

/* Topbar height control */
.container-topbar {
    height: 75px;
  	margin-left: 30px;
}
.container-topbar .row {
    height: 75px;
}

/* Logo height fix */
.container-topbar .brand-logo img {
    max-height: 60px;   /* clave */
    width: auto;
    display: block;
}

/* Topbar on mobile */
@media (max-width: 768px) {
    .mobile-logo {
        display: block;
        margin-right: auto;
    }
  	/* Ocultar completamente el topbar en móvil */
    .container-topbar {
        display: none;
    }
    /* Header como barra única */
    header.container-header {
        position: relative;
        display: flex;
        align-items: center;
        height: 60px;
        padding: 0 12px;
    }
    /* Logo visible a la izquierda */
    .brand-logo {
        display: block;
    }
    .brand-logo img {
        max-height: 40px;
        width: auto;
    }
    /* Contenedor del menú ocupa el resto del ancho */
    .container-nav {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    /* Hamburguesa alineada a la derecha */
    .dj-megamenu {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }
    .dj-megamenu-toggle {
        margin-left: auto;
    }
}

/* MENU */

/* Override the lila background with white */
.container-header {
    background-color: white !important;
    background-image: none !important;
}

/* Override DJ-Mega-Menu font */
header.container-header .dj-megamenu-default li a.dj-up_a {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 60px;  /* para centrar verticalmente */
}

/* We add padding and radius so that on hover there is a nice background */
.container-header .mod-menu a {
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px; 
    padding: 3px 15px;
    color: #0088cc;
}

/* We need to change the color of the Hamburger Menu because white on white is not good */
.container-header .navbar-toggler {
    color: #0088cc;
    border: 1px solid #0088cc;
}

li.itemid101 {
    display: none !important;
}
li.itemid102 {
    display: none !important;
}

/* End of Menu Customization */

/* ===== EFECTOS ESPECIALES ====== */

/* ===== HEADER SCROLL SETUP ===== */

.container-topbar {
    height: 75px;
    overflow: hidden;
    transition:
        height 0.4s ease,
        opacity 0.3s ease,
        transform 0.4s ease;
}
.container-topbar .row {
    transition: opacity 0.3s ease;
}

.nav-logo-compact,
.nav-social-compact {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

/* Layout del menú cuando tenga logo + social */
.container-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Menú centrado, logo compacto a izquierda, social a derecha */
.container-nav > .dj-megamenu {
    margin: 0 auto;
}
.container-nav {
    display: flex;
    align-items: center;
}
/* extremos */
.nav-left,
.nav-right {
    flex: 0 0 auto;
}
/* menú centrado */
.nav-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
/* separaciones cómodas */
.nav-left {
    margin-right: 24px;
}
.nav-right {
    margin-left: 24px;
}

/* ===== CUANDO HAY SCROLL ===== */

header.container-header.is-scrolled .container-topbar {
    height: 0;
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}
header.container-header.is-scrolled .container-topbar .row {
    opacity: 0;
}

/* Mostrar logo compacto */
/* Logo compacto dentro del menú */
.nav-logo-compact img {
    max-height: 58px;
    width: auto;
    display: block;
}
header.container-header.is-scrolled .nav-logo-compact,
header.container-header.is-scrolled .nav-social-compact {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ajuste visual del header */
header.container-header.is-scrolled {
    transition: all 0.4s ease;
}

/* Set vertical padding from menu card */
.container-header > .card {
    padding-top: 5px;
    padding-bottom: 5px;
  	margin-top: 5px;
}

/* Normalize grid-child around menu */
.container-header .card .grid-child {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== CENTRADO VERTICAL SOCIAL (TOPBAR + MENÚ) ===== */

/* Topbar */
.col-sm-1.ver-align-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menú compacto */
.nav-social-compact {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Limpieza de párrafo en ambos casos */
.col-sm-1.ver-align-center p,
.nav-social-compact p {
    margin: 0;
}

/* Para evitar micro-desplazamientos por baseline del img */
.nav-social-compact img {
    display: block;
}

@media (max-width: 768px) {
    /* En móvil NO existe header compacto */
    .nav-logo-compact,
    .nav-social-compact {
        display: none !important;
    }
    .container-nav {
        display: block;
        width: 100%;
    }
    header.container-header {
        display: flex;
        align-items: center;
        height: 60px;
        padding: 0 12px;
    }
    .mobile-logo {
        display: block;
        margin-right: auto;
    }
    .dj-megamenu {
        display: flex;
        justify-content: flex-end;
        width: auto;
    }
    /* El card del menú NO debe verse como card en móvil */
    .container-header > .card {
        background: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
        margin: 0;
        min-height: 0;
    }
    .container-header .card .grid-child {
        padding: 0;
        margin: 0;
    }
    header.container-header {
        display: flex;
        align-items: center;
        height: 60px;
        padding-left: 12px;
        padding-right: 32px;
      	padding-top: 12px;
    }

}

/* =================== FIN DE CUSTOMIZACION =================== */

.newsflash-title {
  color: #056dc2;
}

.top-buffer { 
  margin-top:0.4rem; 
  margin-bottom:0.2rem;
}

.right-buffer { 
  margin-right:4rem;
}

.hor-align-right { 
	margin-left: auto; 
	margin-right: 0;
}

.hor-align-center { 
	margin: auto;
}

.left-buffer {
  margin-left: 2rem;
  margin-right: 2rem;
}

.all-buffer {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 1rem; 
  margin-bottom: 1rem;
}

.ver-align-center {
  margin-top: auto;
  margin-bottom: auto;
}

/* Formulario de contacto */

td .form-control {
  width: 100% !important;
}

/* Transparencia */

.organigrama		{ max-width:1120px; position:relative; }
.organigrama a		{ display:block; position:absolute; }
.organigrama img	{ display:inline-block; max-width:100%; height:auto; }

.banner {
	background:#004A98;
	border-radius:4px;
	color:white;
	text-decoration:none;
	display:block;
	font-family:Roboto,sans-serif;
	font-size:24px;
	font-weight:bold;
	margin-bottom:40px;
	padding:50px 5px;
	text-align:center;
	transition:all 0.3s ease-in;
}
.banner:hover {
	background-color:#54C0E8;
	color:white;
	text-decoration:none;
	transition:all 0.3s ease-in;
}

.fracciones article {
	border-bottom:#ccc 1px solid;
	margin-bottom:40px;
	min-height:250px;
}
.fracciones h3 {
	margin:0;
	text-align:center;
}
.fracciones p {
	margin:10px 0 0 0;
}
.fracciones p:first-child {
	margin:0px;
}
.fracciones a {
	display:inline-block;
	background:#004A98;
	color:white;
	margin-top:5px;
	padding:5px 10px;
	transition:all 0.3s ease-in;
}
.fracciones a:hover {
	background:#54C0E8;
	text-decoration:none;
	transition:all 0.3s ease-in;
}
.fracciones-75 {
	font-weight:bold;
	margin:50px 0 50px 0;
	text-align:center;
	text-transform:uppercase;
}

.videos {
  max-width: 560px;
  max-height: 315px;
}

/* VIDEOS RESPONSIVOS */
.containeriframe {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsiveiframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .hideonmobile {
      display:none;
  }
}



/* =========================
   CULTURA DEL AGUA
   MISIÓN · VISIÓN · VALORES
   ========================= */

/* ===== CONTENEDOR GENERAL ===== */
.cultura-agua {
    max-width: 1200px;
    margin: 0 auto;
    color: #2f3b45;
    line-height: 1.7;
}

/* ===== HERO ===== */
.cultura-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 60px 40px;
    margin-bottom: 35px;
    background:
        linear-gradient(135deg, rgba(0,120,190,0.92), rgba(0,170,210,0.88)) /* ,
        url('/images/cultura-agua/banner-cultura.jpg') center/cover */ ;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.cultura-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 35%);
    pointer-events: none;
}

.cultura-hero h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.cultura-hero p {
    font-size: 1.08rem;
    max-width: 850px;
    position: relative;
    z-index: 2;
}

/* ===== TARJETAS ===== */
.cultura-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.cultura-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,.07);
    transition: .3s ease;
    border-top: 5px solid #00a4d6;
}

.cultura-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.cultura-card h2 {
    color: #0076b6;
    margin-bottom: 18px;
    font-size: 1.7rem;
}

/* ===== VALORES ===== */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.valor-item {
    background: linear-gradient(180deg, #ffffff, #f5fbff);
    border: 1px solid #d7eef7;
    border-radius: 16px;
    padding: 22px;
    transition: .3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
    border-color: #00a4d6;
}

.valor-item h3 {
    color: #0088c2;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

/* ===== PROGRAMAS ===== */
.programas-section {
    margin-top: 10px;
}

.programas-title {
    text-align: center;
    margin-bottom: 35px;
}

.programas-title h2 {
    color: #0076b6;
    font-size: 2rem;
    margin-bottom: 10px;
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.programa-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,.07);
    position: relative;
    overflow: hidden;
}

.programa-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #00a4d6, #0076b6);
}

.programa-box h3 {
    color: #0076b6;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.programa-box ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.programa-box li {
    margin-bottom: 10px;
}

.objetivo {
    background: #eef9fd;
    border-left: 5px solid #00a4d6;
    padding: 15px 18px;
    border-radius: 10px;
    font-weight: 600;
    color: #255166;
}

/* ===== REVEAL ON SCROLL ===== */

.fade-up {
    opacity: 0;
    transform: translateY(45px) scale(.96);
    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delays */
.delay-1 {
    transition-delay: .1s;
}
.delay-2 {
    transition-delay: .2s;
}
.delay-3 {
    transition-delay: .3s;
}

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

    .cultura-grid,
    .programas-grid {
        grid-template-columns: 1fr;
    }

    .cultura-hero {
        padding: 45px 25px;
    }

    .cultura-card,
    .programa-box {
        padding: 25px;
    }
}

@media (max-width: 600px) {

    .cultura-hero h1 {
        font-size: 2rem;
    }

    .programas-title h2,
    .cultura-card h2 {
        font-size: 1.5rem;
    }
}

/* =========================
   CONVOCATORIAS
========================= */

.convocatorias-agua {
    max-width: 1200px;
    margin: 0 auto;
    color: #2f3b45;
}

/* HERO */

.convocatoria-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 60px 40px;
    margin-bottom: 35px;
    background:
        linear-gradient(135deg, rgba(0,118,182,0.93), rgba(0,164,214,0.88)) /* ,
        url('/images/cultura-agua/convocatorias.jpg') center/cover */ ;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.convocatoria-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 35%);
}

.convocatoria-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    font-size: .95rem;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.convocatoria-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.convocatoria-hero p {
    max-width: 760px;
    font-size: 1.08rem;
    position: relative;
    z-index: 2;
}

/* GRID */

.convocatorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.convocatoria-item {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,.07);
    transition: .3s ease;
    border-top: 5px solid #00a4d6;
}

.convocatoria-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.convocatoria-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.convocatoria-item h3 {
    color: #0076b6;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* SOLICITA VISITA */

.solicita-visita {
    background:
        linear-gradient(135deg, #ffffff, #f5fbff);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid #dceff7;
}

.visita-content {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    padding: 40px;
}

.visita-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #0088c2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.visita-texto h2 {
    color: #0076b6;
    margin-bottom: 18px;
    font-size: 2rem;
}

.visita-contacto {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacto-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2eef5;
    transition: .3s ease;
}

.contacto-box:hover {
    transform: translateY(-3px);
    border-color: #00a4d6;
}

.contacto-icon {
    font-size: 1.7rem;
    line-height: 1;
}

.contacto-box strong {
    display: block;
    margin-bottom: 5px;
    color: #0076b6;
}

.contacto-box a {
    color: #2f3b45;
    text-decoration: none;
    word-break: break-word;
}

.contacto-box a:hover {
    color: #0088c2;
}

.visita-footer {
    background: linear-gradient(90deg, #0076b6, #00a4d6);
    color: #fff;
    text-align: center;
    padding: 18px;
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .visita-content {
        grid-template-columns: 1fr;
    }

    .convocatoria-hero {
        padding: 45px 25px;
    }
}

@media (max-width: 600px) {

    .convocatoria-hero h1 {
        font-size: 2rem;
    }

    .visita-texto h2 {
        font-size: 1.6rem;
    }

    .visita-content {
        padding: 25px;
    }

    .convocatoria-item {
        padding: 24px;
    }
}


/* =========================
   FAQ ATENCIÓN CIUDADANA
========================= */

.faq-ciudadana {
    max-width: 1100px;
    margin: 0 auto;
    color: #2f3b45;
}

/* HERO */

.faq-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 35px;
    background:
        linear-gradient(135deg, rgba(0,94,145,.94), rgba(0,140,200,.88)) /* ,
        url('/images/atencion-ciudadana/faq-banner.jpg') center/cover */ ;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.faq-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 35%);
}

.faq-badge {
    display: inline-block;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
    font-size: .95rem;
}

.faq-hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.faq-hero p {
    font-size: 1.08rem;
    position: relative;
    z-index: 2;
}

/* INTRO */

.faq-intro-card {
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 6px 18px rgba(0,0,0,.07);
    border-left: 6px solid #00a4d6;
}

.faq-intro-card h2 {
    color: #006ca8;
    margin-bottom: 15px;
}

/* FAQ */

.faq-lista {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transition: .3s ease;
    border: 1px solid #e6eef3;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.faq-question {
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    padding: 24px 28px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #005f91;
    cursor: pointer;
    position: relative;
    transition: .3s ease;
}

.faq-question:hover {
    background: #f5fbff;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #00a4d6;
    transition: .3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height .4s ease,
        padding .3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 28px 25px;
}

.faq-answer p,
.faq-answer li {
    line-height: 1.7;
}

.faq-answer ul {
    margin: 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .faq-hero {
        padding: 45px 25px;
    }

    .faq-question {
        padding: 22px 20px;
        padding-right: 60px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 22px;
    }

    .faq-question::after {
        right: 20px;
    }

}
