/*==========================================================*/
/* Código Unificado y Modernizado para Bootstrap 5.3.3 */
/* Utiliza este archivo en lugar de estilo.css, colores.css y buscador.css */
/*==========================================================*/

/* Estilos de base - Modernizados para evitar duplicados y conflictos */
/* La mayoría de estos estilos ya están cubiertos por Bootstrap Reboot */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    line-height: 1.3;
    font-family: var(--bs-font-sans-serif); /* Uso de variable de Bootstrap */
    color: var(--bs-body-color); /* Uso de variable de Bootstrap para el color del texto */
    background-color: #d7ebff; /* Mantenemos el color de fondo específico */
}

/* Selección de texto */
::-moz-selection {
    background: #fe57a1;
    color: #fff;
    text-shadow: none;
}
::selection {
    background: #fe57a1;
    color: #fff;
    text-shadow: none;
}

/* Tipografía y elementos de HTML comunes - Algunos ya en Bootstrap, otros adaptados */
abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: var(--bs-body-font-weight, bold); /* Usa la variable de Bootstrap para la negrita */
}

dfn {
    font-style: italic;
}

hr {
    display: block;
    height: 2px;
    width: 70%;
    color: blue;
}

ins {
    text-decoration: none;
    background: #ff9;
    color: #000;
}

mark {
    font-style: italic;
    font-weight: bold;
    background: #ff0;
    color: #000;
}

pre, code, kbd, samp {
    font-family: var(--bs-font-monospace); /* Utiliza la variable monoespacio de Bootstrap */
    font-size: 1em;
}

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

q {
    quotes: none;
}
q::before, q::after {
    content: "";
    content: none;
}

small {
    font-size: 85%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    top: -0.5em;
}
sub {
    bottom: -0.25em;
}

ul, ol {
    margin: 1rem 0;
    padding: 0 0 0 40px;
}
dd {
    margin: 0 0 0 40px;
}

nav ul, nav ol {
    list-style: none;
    list-style-image: none;
    margin: 0;
    padding: 0;
}
svg:not(:root) {
    overflow: hidden;
}
label {
    cursor: pointer;
}
legend {
    border: 0;
    padding: 0;
    white-space: normal;
}

/* Se ha simplificado la sintaxis de botones e inputs ya que Bootstrap 5 los cubre */
/* El uso de .btn en HTML es la forma recomendada en Bootstrap */
.botones {
    /* Aquí se eliminan los gradientes antiguos y se usan clases de Bootstrap */
    /* Para replicar un gradiente, se necesita un gradiente personalizado */
    background: #3366ff;
    color: var(--bs-cyan); /* Cambiado a variable de Bootstrap */
    border: 2px solid #99ccff;
}

.botones a {
    color: #fff;
}

.botones:hover {
    background-color: #99ccff;
    /* Se mantienen los gradientes antiguos para compatibilidad de navegadores viejos */
    background-image: -o-linear-gradient(top, rgb(204, 204, 204), rgb(0, 183, 204));
    background: -ms-linear-gradient(top, #ccffff 50%, #ffffff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccffff', endColorstr='#ffffff', GradientType=1);
}

/* Estilos de enlaces (a) */
a {
    text-decoration: none;
    text-transform: uppercase;
    color: #44f;
}
a:focus {
    outline: thin dotted;
}
a:hover, a:active {
    outline: 0;
    color: #06e;
}
a:visited {
    color: #551a8b;
}

/* Clases y IDs unificadas */
.jus {
    text-align: justify;
}

.pagina {
    padding: 8px 16px;
    border: 1px solid #ccc;
    color: #333;
    font-weight: bold;
}

.abre {
    text-align: center;
    height: 10px;
    cursor: pointer;
}

.abre:hover {
    border-radius: 7px;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ccffff), to(#0099cc));
    background-image: -moz-gradient(linear, left top, left bottom, from(#ccffff), to(#0099cc));
    background-image: -o-linear-gradient(top, rgb(204, 255, 255), rgb(0, 153, 204));
    background: -ms-linear-gradient(left, #ccffff 0%, #0099cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccffff', endColorstr='#0099cc', GradientType=1);
}

.cerrar {
    display: none;
    height: 10%;
    width: 220px;
    padding: 3px;
}

.busca.open {
    width: 220px;
}

.busca-por {
    background: #fff;
    width: 82%;
    margin-top: 10px;
    margin-left: 1px;
    appearance: none;
}

.anuncio {
    margin: 0 auto;
    margin-left: 15px;
}

#banner {
    animation-name: myfirst;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-play-state: running;
}

.banner img {
    text-align: center;
    width: 100%;
}

.boton-link-grande {
    border-radius: 7px;
    display: inline-block;
    font-size: 1em;
    margin: 0 auto;
    margin-top: 12px;
    padding: 3px;
    text-align: center;
    width: 484px;
    color: blue;
    background: #ffffff;
    border: 1px solid #ffffff;
    -webkit-transition: background-color 0.45s ease-in-out;
    -moz-transition: background-color 0.45s ease-in-out;
    -o-transition: background-color 0.45s ease-in-out;
}

.boton-buscar {
    position: relative;
    top: 1px;
    width: 30px;
    right: 1px;
}

#cabecera {
    height: 90px;
    background-image: url(../imagenes/torrevieja_1440x90.png);
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: black;
    padding: 0.2em 0;
}

.busca {
    position: absolute;
    top: -81px;
    right: 3px;
    white-space: nowrap;
    overflow: hidden;
    height: 65px;
    width: 69px;
    border-radius: 7px;
    z-index: 120;
    transition: width 0.3s ease;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#0099cc), to(#ccffff));
    background-image: -moz-gradient(linear, left top, left bottom, from(#0099cc), to(#ccffff));
    background-image: -o-linear-gradient(top, rgb(204, 255, 255), rgb(0, 153, 204));
    background: -ms-linear-gradient(top, #ccffff 0%, #0099cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccffff', endColorstr='#0099cc', GradientType=1);
    color: #ffffcc;
}

.calle {
    line-height: 1;
    font-size: .9em;
    color: #220252;
}

#calle {
    line-height: 1;
    font-weight: normal;
    font-style: italic;
    font-size: .8em;
    vertical-align: baseline;
}

.dato1 {
    display: inline-block;
    font-size: 1.3em;
    text-indent: 10px;
    color: #220252;
}

.dato2 {
    display: inline-block;
    font-size: 1em;
    text-indent: 10px;
    color: #00d;
}

.ekis {
    font-size: 1.2em;
    position: absolute;
    right: 5px;
    top: 3px;
}

.enlaces {
    height: auto;
    display: inline-block;
    border-radius: 9px;
    text-align: center;
    background: #3366ff;
    margin-top: 10px;
    border: 3px solid #99ccff;
    padding: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.52);
    background-image: -o-linear-gradient(top, rgb(204, 255, 255), rgb(0, 153, 204));
    background: -ms-linear-gradient(top, #ccffff 0%, #0099cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccffff', endColorstr='#0099cc', GradientType=1);
    transition: background-color 0.45s ease-in-out;
	color:#00ffff;
}

.enlaces:hover {
    background-color: #d7ebff;
    background-image: -o-linear-gradient(top, rgb(204, 204, 204), rgb(0, 183, 204));
    background: -ms-linear-gradient(top, #ccffff 50%, #ffffff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccffff', endColorstr='#ffffff', GradientType=1);
    transition: background-color 0.45s ease-in-out;
}

#espacio {
    margin-top: 12px;
    display: block;
    height: 1px;
    width: 30%;
    color: #fefefe;
}

figure {
    margin: 0;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

form {
    margin: 0;
}

h1 {
    display: inline-block;
    font-size: 1.2em;
    padding: 5px;
    text-align: center;
    border-radius: 7px;
    background: #cbcccb;
    border: 1px solid #999999;
    color: #9999ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

h2 {
    display: inline-block;
    font-size: 1em;
    margin: 3px auto;
    padding: 3px;
    text-align: center;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: blue;
}

#h3 {
    display: inline-block;
    font-size: .8em;
    margin: 3px auto;
    padding: 3px;
    text-align: center;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: blue;
}

#info {
    clear: both;
    font-size: .8em;
    height: -10px;
    padding: 5px;
}

input:invalid, textarea:invalid {
    background-color: #f0dddd;
}

li {
    margin-left: 7px;
    margin-top: -3px;
    font-size: 1em;
    text-indent: 10px;
}

li a {
    margin-top: -5px;
    margin-right: 10px;
    margin-left: 10px;
}

nav {
    margin: 0 auto;
    width: 96%;
    text-align: center;
    padding: 0 0.5em;
}

.nombre {
    color: blue;
    line-height: 1.1em;
    font-size: 1em;
}

#nombre {
    color: #00f;
}

#nombre-centro {
    line-height: 1;
    font-weight: bold;
    font-size: 1.2em;
    color: green;
}

#numero {
    line-height: 1;
    font-weight: normal;
    font-style: italic;
    font-size: .8em;
    vertical-align: baseline;
}

#npa0 {
    font-size: 1.9em;
    font-weight: normal;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: #800000;
}

#npa1 {
    position: relative;
    color: #222222;
    font-size: 1.7em;
    font-weight: bold;
    font-family: Arial, sans-serif;
    padding: 7px;
    text-decoration: none;
    border-radius: 3px;
    margin: auto;
    background-color: #f4f4ff;
}

#npa2 {
    font-size: 1.2em;
    color: #0f0;
    font-weight: bold;
    font-family: Arial, _serif;
    text-decoration: none;
    padding: 7px;
    opacity: .75;
    filter: alpha(opacity=75);
    border-radius: 3px;
    margin: auto;
    border: 1px solid #23bb44;
}

#pixels {
    position: fixed;
    top: 19px;
    left: 48px;
    font-size: .5em;
    z-index: 10;
}

#plano {
    padding: 2px;
    font-size: .8em;
    border-radius: 3px;
    background: #ffffff;
    color: #800;
}

r {
    color: #f00;
}

#recuadro {
    margin: 0 auto;
    margin-top: 12px;
    padding: 7px;
    max-width: 459px;
    border: 1px solid #23bb44;
    border-radius: 7px;
}

#sector {
    max-width: 90%;
    text-indent: 10px;
    font-size: 1.2em;
    line-height: 1;
    font-weight: 400;
    border-radius: 7px;
    background: #ffffff;
    border: 2px solid #CCCCFF;
}

.sectores {
    font-size: 10px;
    padding: 3px 0;
    text-transform: uppercase;
    position: relative;
    clear: both;
    background: #ffc;
}

.sectores a {
    margin: 0 3px;
    cursor: pointer;
    color: #800;
}

.sectores a.active {
    text-decoration: underline;
    color: blue;
}

.sectores a:hover, .sectores a:focus {
    color: blue;
}

/* Tipografía de texto alineado */
#t0l, #t1l, #t2l, #t3l {
    text-align: left;
}
#t0c, #t1c, #t2c, #t3c {
    text-align: center;
}
#t0r, #t1r, #t2r, #t3r {
    text-align: right;
}

#t0l, #t0c, #t0r {
    font-size: .8em;
}
#t1l, #t1c, #t1r {
    font-size: 1em;
}
#t2l, #t2c, #t2r {
    font-size: 1.2em;
}
#t3l, #t3c, #t3r {
    font-size: 1.4em;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    vertical-align: top;
}

.telefono {
    font-size: 1em;
    color: #220252;
}

#telefono {
    font-style: italic;
    font-size: .8em;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

.top {
    position: relative;
    height: 1px;
}

.titulo {
    font-size: 4em;
    background: #efefef;
    color: #001199;
    text-transform: uppercase;
}

/* Estilos de vídeo de fondo */
#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    background-size: cover;
}

body {
    position: relative;
    z-index: 1;
}

h1, h7, p, td {
    color: black;
    text-shadow: 1px 1px 0px #0000ff;
}

/* Botón de WhatsApp - Modernizado */
.whatsapp-button {
    position: fixed;
    bottom: var(--bs-spacer-5, 20px);
    right: var(--bs-spacer-5, 20px);
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    padding: var(--bs-spacer-3, 10px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Mensaje de orientación de pantalla */
.orientation-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bs-body-bg-dark, #212529); /* Usando variable para el color oscuro */
    color: var(--bs-body-color-light, #fff);
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5rem;
    padding: 2rem;
    z-index: 9999;
    flex-direction: column;
}

.orientation-message i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

@media screen and (orientation: portrait) {
    body > :not(.orientation-message) {
        display: none !important;
    }
    .orientation-message {
        display: flex;
    }
}
@media screen and (orientation: landscape) {
    .orientation-message {
        display: none;
    }
}

/* Media Queries para tipografía responsive */
@media screen and (max-width: 340px) {
    body {
        font-size: .8em;
    }
    .titulo {
        font-size: 2em;
    }
}
@media screen and (max-width: 440px) {
    #nombre-centro {
        font-size: 1em;
    }
    .titulo {
        font-size: 3em;
    }
}
@media screen and (max-width: 360px) {
    #nombre-centro {
        font-size: .9em;
    }
    .titulo {
        font-size: 2.4em;
    }
}

/* Estilos de paginación - Modernizados con flexbox y clases de Bootstrap */
.paginacion {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.paginacion a {
    margin: 5px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 9px;
}

.paginacion a:hover {
    background-color: var(--bs-gray-200); /* Uso de variable de Bootstrap */
}

.paginacion a.activa {
    background-color: var(--bs-primary); /* Uso de variable de Bootstrap */
    color: var(--bs-white);
    border-color: var(--bs-primary);
    border-radius: 9px;
}

.paginacion a.disabled {
    color: var(--bs-gray-500); /* Uso de variable de Bootstrap */
    pointer-events: none;
    border-radius: 9px;
}

.info {
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

@media (max-width: 480px) {
    .paginacion a {
        font-size: 12px;
        padding: 10px 15px;
    }
    /* La lógica para ocultar páginas en móviles se mantiene */
    .paginacion a.page {
        display: none;
    }
    .paginacion a.page-prev, .paginacion a.page-next,
    .paginacion a.page-1, .paginacion a.page-2, .paginacion a.page-3 {
        display: inline-block;
        font-size: 14px;
        padding: 10px 15px;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .paginacion a {
        font-size: 14px;
        padding: 12px 18px;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        -ms-filter: none !important;
    }
    a, a:visited {
        text-decoration: underline;
    }
    a[href]::after {
        content: " (" attr(href) ")";
    }
    abbr[title]::after {
        content: " (" attr(title) ")";
    }
    .ir a::after, a[href^="javascript:"]::after, a[href^="#"]::after {
        content: "";
    }
    pre {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group;
    }
    tr, img {
        page-break-inside: avoid;
    }
    @page {
        margin: 0.5cm;
    }
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    h2, h3 {
        page-break-after: avoid;
    }
}

/* Búsqueda */
.search-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-icon {
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    position: relative;
    z-index: 2;
}

#searchInput {
    display: none;
    width: 0;
    transition: width 0.3s ease-in-out;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 15px;
    color: black;
}

#searchInput.active {
    display: block;
    width: 250px;
}

#searchResults {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    color: black;
    border: 1px solid #ccc;
    width: 310px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.search-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-item:hover {
    background: #f0f0f0;
    color: blue;
}

select, select option {
    color: black;
    background: white;
}