* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Open Sans;
    background-image: url('logos/photo-fondo.png');
    color: #000000;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    margin: 0 200px;
    background-color: aliceblue;
    padding: 20px;
    box-shadow: 0 0 20px rgba(9, 0, 0, 0.1);
    border-radius: 10px; /* Opcional: para bordes redondeados */
}

header {
    background-color: #565a5e;
    color: #fff;
    padding-bottom: 0px;
    border-radius: 10px;
}

.logo-container {
    display: grid;
    grid-template-columns: auto 1fr auto; /* izquierda | centro | derecha */
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    animation: fadeInUp 1s ease-in-out;
}

/* Se mantiene */
.logo {
    height: 100px;
    margin-right: 0; /* ya no hace falta margen porque usamos grid */
    justify-content: left;
    padding-left: 20px;
}

/* Centro: título centrado (se mantiene .school-name) */
.logo-center {
    text-align: center;
    justify-content: center;
}

.school-name {
    font-size: 2.0em;
    font-weight: bold;
    animation: fadeInUp 0.2s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Frase nueva debajo del título */
.school-phrase {
    margin-top: 6px;
    font-size: 1rem;
    line-height: 1.3;
    color: #e4e4e4;
    user-select: none; /* CSS estándar */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* Derecha: redes */
.socials {
    display: inline-flex;
    align-items: right;
    gap: 12px;
    padding-right: 30px;
    justify-content: right;
}

@media (max-width: 1000px){
 .socials{
    padding-right: 10px;
}
}

.social-link {
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0.9;
    transition: transform 0.15s ease, opacity 0.15s ease;
    color: #ffffff;
    padding-bottom: 60px;
}

.social-link:hover,
.social-link:focus {
    opacity: 1;
    transform: translateY(-1px);
}

/* Animación existente */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 640px) {
    .logo-container {
        grid-template-columns: 1fr; /* apilar */
        justify-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .school-phrase {
        font-size: 0.7rem; 
    }

    .logo { display: none;}
    .socials { justify-content: center; align-items: center; padding: 0;}
    .social-link { padding: 0;}
    .school-name{
        justify-content: center;
        align-items: center;
        justify-items: center;
    }
}

/* Estilos para dispositivos móviles */
.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
    margin: 10px;
}

nav {
    background-color: #ed1919;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 12px 0;
}

.nav-list li {
    margin: 0 10px;
    position: relative;
}

.nav-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #fff;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
    padding: 5px 10px;
    transition: background-color 0.3s, opacity 0.3s;
    display: block;
    border-radius: 3px;
}

.nav-list a:hover {
    background-color: rgb(255, 255, 255);
    opacity: 0.9;
    color: #ed1919;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ed1919;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-content ol{
    margin: 0;
    border-bottom: 1px solid #fff;
}

.dropdown-content ol a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content ol a:hover {
    background-color: rgb(255, 255, 255);
    color: #ed1919;
    border-radius: 0px;
}

.welcome-content {
    max-width: 850px;
    margin: 0 auto;
}

section {
    margin-bottom: 5px;
}

section h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #003366;
    text-align: center;
}

section p {
    font-size: 1.2em;
    line-height: 1.6;
}

.nav-list .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ed1919;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-list .dropdown:hover .dropdown-content {
    display: block;
}

.nav-list .dropdown-content ol {
    margin: 0;
}

.nav-list .dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.nav-list .dropdown-content a:hover {
    background-color: rgb(255, 255, 255);
    opacity: 0.9;
    color: #ed1919;
}

main {
    padding: 0;
    border-radius: 10px;
    background-color: aliceblue;
    background-size: cover;
    margin-top: 20px;
}

.footer {
    background-color: #565a5e;
    padding: 20px;
    color: #ffffff;
    border-radius: 10px;
    margin: 0 200px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(9, 0, 0, 0.1);
    margin-top: 2%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    padding: 10px;
}

.footer-column.left {
    text-align: left;
}

.footer-column.right {
    text-align: right;
}

.separator {
    margin: 20px 0;
    border-top: 1px solid #ffffff;
}

.separator-dos {
    margin: 20px 0;
    border-top: 1px solid #000000;
    margin-right: 20px;
    margin-left: 20px;
}

.separator-tres {
    margin: 20px 0;
    border-top: 1px solid #000000;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #ffffff;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
.no-copiable {
    user-select: none; /* CSS estándar */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

.column {
    flex: 1;
    padding: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-column img {
    width: 40%;
    height: auto;
    display: block;
}

.text-column p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.social-column p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 15px; /* Añadido para separación entre el párrafo y las imágenes */
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Ajusta este valor según la separación deseada */
    width: 100%;
}



.social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social img {
    width: 45px; /* Ajusta este valor según tus necesidades */
    height: auto;
    display: block;
}

.column-image:hover {
    transform: scale(1.1); /* Aumenta el tamaño al 110% en el hover */
}

/* Noticias */

@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
/*Cards*/
.container-card {
	width: 100%;
	display: flex;
	max-width: 1500px;
	margin: auto;
    
}
.card{
	width: 100%;
	margin: 20px;
	overflow: hidden;
	background:#fff;
	box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
	transition: all 400ms ease-out;
	cursor: default;
    border-radius: 10px;
}
.card:hover{
	box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
	transform: translateY(-3%);
}
.card img{
	width: 100%;
	height: auto;
  user-select: none;         /* no seleccionar */
  -webkit-user-drag: none;   /* no arrastrar en WebKit */
  pointer-events: none;      /* los eventos pasan al overlay */
}
.card .contenido-card{
	padding: 15px;
	text-align: center;
}
.card .contenido-card h3{
	margin-bottom: 15px;
	color: #003366;
}
.card .contenido-card p{
	line-height: 1.8;
	color: #6a6a6a;
	font-size: 14px;
	margin-bottom: 5px;
}
.card .contenido-card a{
	display: inline-block;
	padding: 10px;
	margin-top: 10px;
	text-decoration: none;
	color: #007BFF;
	border: 1px solid #007BFF;
	border-radius: 4px;
	transition: all 400ms ease;
	margin-bottom: 5px;
}
.card .contenido-card a:hover{
	background: #007BFF;
	color: #fff;
}
@media only screen and (min-width:300px) and (max-width:768px){
	.container-card{
		flex-wrap: wrap;
	}
	.card{
		margin: 5px;
	}
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
	.container-card {
		justify-content: space-around; /* Ajusta el espaciado entre las tarjetas */
	}

	.card {
		margin: 5px;
	}
}

@media only screen and (max-width: 768px) {
	.container-card {
		grid-template-columns: 1fr; /* Una columna en pantallas más pequeñas */
	}
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
	.container-card {
		grid-template-columns: repeat(2, 1fr);
	}
}


@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.section-qs {
    padding: 15px;
    width: 45%;
    margin: 20px 0;
}
.left-o {
    float: left;
    text-align: left;
    text-align: justify;
}
.right-o {
    float: right;
    text-align: justify;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.active {
    background-color: #717171;
}

.column-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Espacio debajo de las columnas */
}

.column-ok {
    width: 48%; /* Ajusta el ancho de las columnas */
    border: 1px solid #ccc; /* Solo para visualización */
    padding: 10px; /* Solo para visualización */
}

.news-section {
    clear: both; /* Asegura que la sección de noticias se coloque debajo de las columnas */
    margin-top: 20px; /* Espacio adicional si es necesario */
    justify-content: center; /* Centra el contenido en el contenedor */
}

.title-container {
    display: flex;
    align-items: center;
    padding: 15px;
}

.title-container h3 {
    font-size: 30px; /* Tamaño de la fuente */
    font-weight: bold; /* Hace que el texto esté en negrita */
    height: 2px;
    margin-bottom: 20px;
}

.parrafo-nose{
    user-select: none; /* CSS estándar */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Posición inicial */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Posición final */
    }
}

@media (max-width: 1200px) {
    .left-o,
    .right-o {
        float: none; /* Elimina el flotado para que se apilen en una columna */
        text-align: left; /* Ajusta el texto a la izquierda */
    }

    .right-o {
        text-align: left; /* Asegúrate de que el texto alineado a la izquierda en pantallas pequeñas */
    }

    .separator {
        flex-direction: column; /* Cambia a dirección de columna en pantallas pequeñas */
        text-align: center; /* Alinea el texto al centro */
        margin-top: 10px; /* Ajusta el margen superior */
    }

    .separator::before,
    .separator::after {
        margin: 10px 0; /* Reduce el espacio entre las líneas en pantallas pequeñas */
    }

    .separator img {
        height: 20px; /* Reducir tamaño del logo para pantallas pequeñas si es necesario */
        margin: 0; /* Eliminar margen derecho en pantallas pequeñas */
    }

    .title-container{
        text-align: center;
        justify-content: center;
        justify-items: center
    }

}
/* Encabezado */
@media (max-width: 1450px) {

    .footer{
        margin: 10px; /* Ajusta el margen */
        padding: 10px; /* Ajusta el relleno */
        padding-bottom: 20px;
    }

    .section-qs {
        width: 100%; /* Ocupa el ancho completo */
        margin: 20px 0; /* Ajusta el margen */
        padding: 10px; /* Ajusta el relleno */
    }

    .container{
        margin: 0 10px;
    }

    .contenido-card{
        font-size: 1em;
    }

    .parrafo-nose{
        font-size: 1em;
    }

    h2{
        font-size: 1.3em;
    }

    .simple-news-box{
        font-size: 0.8em;
    }

}


@media (max-width: 1000px) {


    .nav-list {
        display: none;
        flex-direction: column;
        align-items: left;
        width: 100%;
        background-color: #ed1919;
    }
  
  
    .nav-list.active {
        display: flex;
    }
  
    .nav-list li {
        margin: 10px 0;
        padding-left: 10px;
        padding-right: 10px;
    }
  
    .menu-icon {
        display: flex;
        padding-bottom: 35px;
        padding-top: 20px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

  
    .nav-list a {
      border-bottom: 1px solid #fff;
      padding-bottom: 10px;
      padding-top: 10px;
      line-height: 15px;
    }
  
    .dropdown-content {
      position: absolute;
      width: 43%; /* Dropdowns ocupan todo el ancho en pantallas pequeñas */
      left: 10px;
      padding: 0;
      box-shadow: 0px 0px 20px rgb(255, 255, 255);
    }
  }


/* Pie de Pagina */
@media (max-width: 1000px) {
    .footer {
        padding: 40px;
        margin: 0 10px; /* Elimina el margen horizontal en pantallas pequeñas */
        margin-top: 10px;
        padding-bottom: 20px;
    }

    .footer-content {
        flex-direction: column; /* Cambia a diseño de columna para pantallas pequeñas */
        
    }

    .footer-column {
        flex: 1 1 auto; /* Ajusta el ancho automático para adaptarse al contenido */
        padding: 10px;
        text-align: center; /* Alineación al centro para pantallas pequeñas */
    }

    .image-column img {
        width: 25%; /* Ajusta el tamaño de la imagen para pantallas pequeñas */
    }

    .social img {
        width: 30px; /* Ajusta el tamaño de las imágenes de redes sociales para pantallas pequeñas */
    }

    .school-name{
        font-size: 1.4em;
        padding: 0px;
        text-align: center;
        
    }

  .logo-container{
        padding: 20px;
    }

    .logo{
        padding-left: 0;
    }


    .text-column p{
        font-size: 14px;
    }

    .social-column p{
        font-size: 14px;
    }
}

.main-ok{
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

:root{
      --size-dos: 48px;      /* diámetro del círculo */
      --icon-dos: 23px;       /* tamaño del logo dentro */
      --gap-dos: 18px;
    }
    
.socials-dos{
      display:flex; align-items:center; gap:var(--gap-dos);
    }

    .socials-dos a{
      width:var(--size-dos); height:var(--size-dos);
      background:#fff; border-radius:50%;
      display:grid; place-items:center;
      text-decoration:none;
      box-shadow: 0 6px 18px rgba(0,0,0,.08);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      border:1px solid rgba(0,0,0,.06);
    }

    .socials-dos a:hover{
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }

    .socials-dos i{
      font-size:var(--icon-dos);
      line-height:1;
    }

    /* Colores oficiales */
    .facebook i{ color:#1877F2; }   /* Facebook Blue */
    .youtube  i{ color:#FF0000; }   /* YouTube Red  */

    /* Instagram gradient en el ícono (texto) */
    .instagram i{
      background:
        radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
      -webkit-background-clip:text;
      background-clip:text;
      color:transparent;
    }

    /* Accesibilidad: foco visible */
    .socials-dos a:focus{
      outline:none;
      box-shadow: 0 0 0 3px rgba(24,119,242,.25), 0 6px 18px rgba(0,0,0,.08);
    }

    /* ===== Responsivo ===== */

/* Teléfonos pequeños */
@media (max-width: 500px){
  :root{
    --size-dos: 40px;      /* diámetro del círculo */
      --icon-dos: 20px;       /* tamaño del logo dentro */
      --gap-dos: 15px;
  }
}

/* Accesibilidad: reduce animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce){
  .socials a{ transition: none; }
  .socials a:hover{ transform: none; }
}

/* ------------------------------------------------------------------------ */

/* Buenas bases */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

/* Variables responsivas */
:root{
  --pad-inline: 16px;
  --btn-size: 44px;   /* tamaño flecha */
  --btn-font: 18px;   /* tamaño icono */
  --dot: 10px;        /* tamaño dot */
}

/* La sección del slider no permite desbordes laterales */
.section-del-slider{
  overflow-x: hidden;
  padding-inline: var(--pad-inline);
}

/* Slider responsivo: <=1000px y misma proporción 1000x450 */
.slider-container{
  position: relative;
  width: min(100%, 100%);
  aspect-ratio: 1080 / 450;
  margin: 24px auto;
  overflow: hidden;
  border-radius: 10px;
}

/* Track y slides */
.slider-track{ display:flex; height:100%; transition: transform .5s ease; }
.slide{ flex: 0 0 100%; height: 100%; user-select: none; }
.slide img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Flechas (Font Awesome dentro del botón) */
.nav-button{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(47, 47, 47, 0.75);
  border: 1px solid #424243;
  color: #e5e7eb;
  cursor: pointer;
  z-index: 2;
}
.nav-button:hover{ background: rgba(35, 35, 35, 0.95); }
.nav-button.left{ left: 10px; }
.nav-button.right{ right: 10px; }
.nav-button i{
  font-size: var(--btn-font);
  line-height: 1;
  pointer-events: none; /* el click lo recibe el botón, no el <i> */
}

/* Dots */
.dots{
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; gap: 8px; justify-content: center;
  z-index: 2;
}
.dot{
  width: var(--dot); height: var(--dot);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.25);
  cursor: pointer;
}
.dot.active{ background: #fff; }

/* Breakpoints para "resolución pequeña" */
@media (max-width: 768px){
  :root{
    --pad-inline: 12px;
    --btn-size: 38px;
    --btn-font: 16px;
    --dot: 8px;
  }
  .slider-container{ margin: 16px auto; }
}

@media (max-width: 480px){
  :root{
    --pad-inline: 10px;
    --btn-size: 32px;   /* flechas más pequeñas */
    --btn-font: 14px;   /* icono más pequeño */
    --dot: 6px;         /* dots más pequeños */
  }
  .slider-container{ margin: 12px auto; border-radius: 8px; }
}

@media (max-width: 360px){
  :root{
    --btn-size: 28px;
    --btn-font: 13px;
  }
  /* Si prefieres aún más limpio, puedes ocultar flechas:
  .nav-button{ display:none; }
  */
}


/* Estilos de la caja */
.simple-news-box {
    background-color: aliceblue; /* Color de fondo */
    padding: 10px;             /* Espaciado interno */
    border-radius: 10px;        /* Bordes ligeramente redondeados */
    width: 97%;              /* Ancho de la caja */
    text-align: center;        /* Centrar el texto */
    margin: 15px auto;         /* Centrar la caja en la página */
}

/* Estilos del texto */
.simple-news-text {
    font-size: 2em;
    font-weight: bold;
    color: #000000; /* Color del texto */
}

.img-ok{
    border-radius: 15px;
}

.rotar-imagen{
    user-select: none;         /* no seleccionar */
  -webkit-user-drag: none;   /* no arrastrar en WebKit */
  pointer-events: none;      /* los eventos pasan al overlay */
}

.rotar-imagen::after{
  content: "";
  position: absolute;
  inset: 0;                  /* overlay transparente */
  background: transparent;
}

.img-guard{
  position: relative; 
  display: inline-block;
}
.img-guard img{
  user-select: none;         /* no seleccionar */
  -webkit-user-drag: none;   /* no arrastrar en WebKit */
  pointer-events: none;      /* los eventos pasan al overlay */
}
.img-guard::after{
  content: "";
  position: absolute;
  inset: 0;                  /* overlay transparente */
  background: transparent;
}

/* === MODAL / ANUNCIO === */
/* === MODAL / ANUNCIO === */
:root{
  --overlay: rgba(0,0,0,.55);
  --modal-radius: 18px;
  --modal-shadow: 0 20px 50px rgba(0,0,0,.35);
}

body.modal-open { 
  overflow: hidden; 
}

.overlay-anuncio{
  position: fixed;
  inset: 0;
  display: none;              /* oculto por defecto */
  place-items: center;        /* centra el modal */
  background: var(--overlay);
  backdrop-filter: blur(3px); /* opcional: blur del fondo */
  z-index: 9999;              /* sobre todo */
}

.overlay-anuncio.show{ 
  display: grid; 
}

.modal-anuncio{
  background: #fff;
  border-radius: var(--modal-radius);
  box-shadow: var(--modal-shadow);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  
  /* ancho pensado para el banner 2000x900 */
  max-width: 900px;
  width: min(96vw, 900px);
  margin: 0 12px; /* pequeño margen lateral */
}



.overlay-anuncio.show .modal-anuncio{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-anuncio__header{
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #a90000; 
  color:#ffffff; 
  font-weight: 700;
}

/* Botones genéricos */
.btn-anuncio{
  appearance:none; 
  border:0; 
  border-radius:12px; 
  padding:10px 16px;
  font-weight:600; 
  cursor:pointer;
}

.btn-anuncio--primary{ 
  background:#111827; 
  color:#fff; 
}

.btn-anuncio--link{ 
  background:transparent; 
  color:#111827; 
}

.btn-anuncio--close{
  background:transparent; 
  border:0; 
  color:#fefefe; 
  cursor:pointer;
  font-size:24px; 
  line-height:1; 
  padding:0 6px;
}

/* ===============================
   Banner de imagen ocupando todo
   =============================== */

.modal-anuncio__banner{
  position: relative;
  width: 100%;
  max-height: 80vh;        /* para que no se salga de la pantalla */
  overflow: hidden;
}

.modal-anuncio__banner-img{
  display: block;
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: cover;       /* mantiene proporción 2000x900 recortando si hace falta */
}

/* Degradado inferior para leer mejor los botones */
.modal-anuncio__banner::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;       /* solo parte inferior */
  height: 35%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.158), transparent);
  pointer-events: none;
}

/* Contenedor de botones dentro del banner */
.modal-anuncio__actions{
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  display:flex; 
  gap:12px; 
  justify-content:flex-end;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
}

/* Ajustes de color para legibilidad sobre la imagen */
.modal-anuncio__banner .btn-anuncio--primary{
  background: #111827;
  color: #ffffff;
}

.modal-anuncio__banner .btn-anuncio--link{
  background: rgba(255,255,255,0.9);
  color: #111827;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 768px){
  .modal-anuncio{
    width: 96vw;
    max-width: 620px;
    border-radius: 16px;
  }

  .modal-anuncio__banner{
    max-height: 70vh;
  }

  .modal-anuncio__actions{
    inset-inline: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .btn-anuncio{
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
  }
}

/* Layout especial para pantallas muy pequeñas */
@media (max-width: 480px){
  .modal-anuncio{
    width: 96vw;
    margin: 0 2vw;
    border-radius: 14px;
  }

  /* Dejamos que el banner tome la altura que necesite
     y permitimos que el contenido (botones) salga hacia abajo
     sin ser cortado */
  .modal-anuncio__banner{
    max-height: none;
    overflow: visible;
  }

  /* Quitamos el degradado porque ya no habrá botones encima de la imagen */
  .modal-anuncio__banner::after{
    display: none;
  }

  /* Botones dejan de ser absolutos y se comportan como bloque normal,
     quedando DEBAJO de la imagen, dentro del modal */
  .modal-anuncio__actions{
    position: static;              /* ya no absolute */
    margin-top: 0px;
    padding: 8px 12px 14px;
    background: #00000048;
    display: flex;
    flex-direction: column;        /* uno debajo del otro */
    align-items: stretch;
    gap: 8px;
  }

  .modal-anuncio__actions .btn-anuncio{
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 10px;
    line-height: 1.2;
  }
}


/* ====== Accesibilidad extra ====== */
@media (prefers-reduced-motion: reduce){
  .modal-anuncio{
    transition: none !important;
  }
  .overlay-anuncio{
    backdrop-filter: none;
  }
}

/* Modo oscuro (si lo usas en todo el sitio) */
@media (prefers-color-scheme: dark){
  .modal-anuncio{
    background: #ffffff;
    color: #000000;
  }
}

/* Botones más pequeños en pantallas muy pequeñas */
@media (max-width: 430px){
  .modal-anuncio__banner{
    max-height: 60vh;
  }

  .modal-anuncio__actions{
    inset-inline: 8px;
    bottom: 10px;
    gap: 6px;
  }

  .modal-anuncio__actions .btn-anuncio{
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 10px;
    line-height: 1.2;
  }
}
