/* Cabecera siempre fija con efecto glass y blur */
/* ——————————————————————————————
   Evitar que el contenido quede oculto detrás del header fijo
   —————————————————————————————— */
body {
    /* Debe ser igual a la altura total de tu header (logo + padding) */
    padding-top: 100px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Logo pequeño (izquierda y derecha) */
.header-logo {
    height: 80px;
    width: auto;
}

/* Evitar que el contenido principal quede oculto tras la cabecera */
main.container {
    margin-top: 90px; /* Ajusta este valor según la altura total de tu header */
}

/* Botones de navegación: estilo base */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover con color azul metálico oscuro */
.navbar-nav .nav-link:hover {
    background-color: #0d3b66;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 59, 102, 0.4);
    border-radius: 4px;
}

/* Zona para el Home.razot */

/* ——————————————————————————————
   Grid de “membership cards”
   —————————————————————————————— */
.membership-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0 1rem;
}

/* ——————————————————————————————
   Tarjeta con efecto glass & blur
   —————————————————————————————— */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ——————————————————————————————
   Card de descripción (ancho completo)
   —————————————————————————————— */
.description-card {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
}

.desc-text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.pearled-text h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fafafa;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ——————————————————————————————
   Imagen dentro de cada card
   —————————————————————————————— */
.cardview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ——————————————————————————————
   Etiqueta bajo la imagen
   —————————————————————————————— */
.card-label {
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 500;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
}

/* ——————————————————————————————
   Botón glass minimalista
   —————————————————————————————— */
.glass-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ——————————————————————————————
   Ajustes para el carousel de logos
   —————————————————————————————— */
#logosCarousel .carousel-inner {
    display: flex;
    align-items: center;
}

#logosCarousel .carousel-item {
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
}

#logosCarousel img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

#logosCarousel img:hover {
    transform: scale(1.1);
}
/* ————————  
 Tres cards por fila  
 ———————— */
.membership-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;               /* separaciones iguales en filas y columnas */
    justify-content: center;
}

/* Solo las cards de contenido (no la .description-card) */
.membership-cards .glass-card:not(.description-card) {
    flex: 0 0 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
}
/* Quitar subrayado de los enlaces en los cardviews */
.glass-card a {
    text-decoration: none;
}

/* Asegurar que al hacer hover tampoco aparezca */
.glass-card a:hover {
    text-decoration: none;
}
/* Título de la descripción en azul metálico oscuro */
.description-card .pearled-text h4 {
    color: #0d3b66;
    /* opcional: darle un poco de relieve */
    text-shadow: 0 1px 2px rgba(13, 59, 102, 0.5);
}
/* Contenedor para el nuevo card full width */
.fullwidth-card {
    width: 100%;
    padding: 0 1rem;    /* opcional, para que respete algo de margen lateral */
    box-sizing: border-box;
}

/* Glass-card a todo ancho y 400px de alto */
.fullwidth-card .fullwidth-glass {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fullwidth-card .fullwidth-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}


/* La zona central de cardview en carrusel */

/* ————— fullwidth-glass carousel ————— */
.fullwidth-glass {
    display: flex;
    flex-direction: column;
    height: 400px;            /* ya la tienes, pero la repetimos para contextualizar */
}

.fullwidth-glass .carousel-inner,
.fullwidth-glass .carousel-item {
    height: 100%;       /* ocupa los 400px que ya definiste */
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ajusta la imagen al tamaño del cardview */
}

/* texto en la esquina inferior izquierda */
.carousel-text {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    max-width: 70%;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
}

/* íconos de control en blanco para mejor contraste */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* opcional: efecto hover en la imagen */
.fullwidth-glass a:hover .carousel-img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}
/* Scroll interno y tipografía para el contenido de convocatoria */
.fullwidth-glass .scroll-content {
    overflow-y: scroll;
}

/* Cabeceras azules oscuras */
.scroll-content h3,
.scroll-content h4,
.scroll-content h5 {
    color: #0d3b66;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Párrafos */
.scroll-content p {
    margin-bottom: 1rem;
}

/* Listas */
.scroll-content ul,
.scroll-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
}
.scroll-content ul li,
.scroll-content ol li {
    margin-bottom: 0.5rem;
}

/* Enlaces (correo) */
.scroll-content a {
    color: #0d3b66;
    text-decoration: underline;
}
/* ——————————————————————————————
   Forzar scroll interno ocupando todo el alto
   —————————————————————————————— */
.fullwidth-glass {
    position: relative;   /* para que scroll-content pueda posicionarse */
    height: 400px;        /* altura fija del card */
}

.fullwidth-glass .scroll-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;              /* llena todo el espacio del fullwidth-glass */
    overflow-y: auto;     /* habilita scroll vertical */
    overflow-x: hidden;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* (Opcional) suavizar scroll en iOS */
.fullwidth-glass .scroll-content {
    -webkit-overflow-scrolling: touch;
}
/* Contenedor centrado para el botón de descarga */
.download-button-container {
    text-align: center;
    margin-top: 1rem;
}

/* Botón glass minimalista de descarga */
.glass-download-button {
    /* color por defecto en azul metálico oscuro */
    background-color: #0d3b66;
    border: 1px solid #0d3b66;

    /* resto de propiedades que ya tenías */
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.glass-download-button:hover {
    /* opcional: aclarar un poco al pasar el mouse */
    background-color: rgba(13, 59, 102, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Reemplaza el flex por Grid y define dos columnas */
.fullwidth-glass.editorial-card {
    display: grid;
    grid-template-columns: 150px 1fr; /* 150px para la imagen, resto para el texto */
    gap: 1rem;
    height: 400px;
    overflow: hidden;
    padding: 1rem;
}

/* Zona de imagen ahora pequeña y centrada */
.editorial-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.editorial-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Zona de texto con scroll como antes */
.editorial-content {
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    -webkit-overflow-scrolling: touch;
}

/* Cabeceras en azul oscuro */
.editorial-content h3,
.editorial-content h4 {
    color: #0d3b66;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Márgenes y listas como antes */
.editorial-content p {
    margin-bottom: 1rem;
}
.editorial-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}
.editorial-content ul li {
    margin-bottom: 0.5rem;
}
.editorial-content a {
    color: #0d3b66;
    text-decoration: underline;
}
/* Grid de dos columnas: 20% imagen, 80% texto */
.editorial-grid {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 1rem;
    height: 400px;           /* altura fija del fullwidth-card */
    box-sizing: border-box;
}

/* Ambos cardviews comparten el estilo glass */
.editorial-grid .glass-card {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.editorial-grid .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Card de imagen (20%) */
.image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
.image-card img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Card de texto (80%) con scroll */
.text-card {
    display: flex;
    flex-direction: column;
}
.text-card .scroll-content {
    padding: 1rem;
    box-sizing: border-box;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: rgba(255,255,255,0.1);
}

/* Cabeceras en azul oscuro */
.editorial-content h3,
.editorial-content h4 {
    color: #0d3b66;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Párrafos y listas */
.editorial-content p {
    margin-bottom: 1rem;
}
.editorial-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}
.editorial-content ul li {
    margin-bottom: 0.5rem;
}

/* Enlaces internos */
.editorial-content a {
    color: #0d3b66;
    text-decoration: underline;
}
.text-blue {
    color: #0d3b66 !important;
    display: block;
    width: 100%;
    text-align: center;
}
/* Si usas el <div id="top-of-page"></div> como ancla */
#top-of-page {
    /* sitúa el ancla 100px arriba de donde realmente está */
    margin-top: -100px;
    /* rellena ese espacio vacío para no “quebrar” el flujo */
    padding-top: 100px;
}

/* Además, si quieres cubrir cualquier otro target */
:target {
    scroll-margin-top: 100px;
}
/* Glass-card centrado para la imagen central */
.central-image-card {
    width: 500px;
    height: 500px;
    margin: 1.5rem auto;           /* centra y separa del texto */
    display: flex;
    align-items: center;
    justify-content: center;

    /* efecto “glass” alrededor */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* brillo sutil */
    box-shadow:
            0 0 20px rgba(255, 255, 255, 0.6),
            0 4px 16px rgba(0, 0, 0, 0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.central-image-card:hover {
    transform: translateY(-5px);
    box-shadow:
            0 0 30px rgba(255, 255, 255, 0.8),
            0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Imagen ajustada al contenedor */
.central-image-card img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 8px;
}
/* Centrar el título principal */
.content-card h2 {
    text-align: center;
    margin-bottom: 1rem;
}
/* Espaciado interno para que el texto no quede pegado al borde */
.content-card .text-content {
    padding-left: 10px;
    padding-right: 10px;
}

