/* ==========================================================================
   1. FUENTES Y RESET
   ========================================================================== */
@font-face {
    font-family: 'ScriptMTBold';
    /* Ajusta la ruta si es necesario */
    src: url('../../MyFebes/fonts/ScriptMTBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Clase global para la tipografía del logo */
.febes-font {
    font-family: 'ScriptMTBold', 'Brush Script MT', cursive;
    font-weight: normal;
    font-size: 1.4em; 
    line-height: 1;
    display: inline-block;
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    padding: 0; 
    font: 16px/1.5 Verdana, Arial, Helvetica, sans-serif; 
    background-color: #fcf5a7; 
    color: #6f4726; 
}

a { text-decoration: none; color: #B45F04; transition: color 0.3s; }
a:hover { color: #8A4B08; }
img { max-width: 100%; height: auto; }


/* ==========================================================================
   2. ESTRUCTURA PRINCIPAL
   ========================================================================== */
#contenedor { 
    background: #f5f5dc; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    position: relative; 
}

/* Cabecera */
#cabecera2 { 
    display: flex; 
    background-color: #f5f5dc; 
    border-bottom: 1px solid #9EA5AC; 
    padding: 5px 0; 
    min-height: 80px; 
    align-items: center; 
}
.logo-box { width: 225px; min-width: 80px; display: flex; align-items: center; justify-content: center; }
.title-box { width: 85%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 10px; }
.texto-header-febes { font-family: 'ScriptMTBold', cursive; font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: #6f4726; line-height: 1; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); text-align: center; }
.subtexto-header-febes { font-family: 'ScriptMTBold', cursive; font-size: clamp(0.9rem, 2vw, 1.2rem); color: #6f4726; margin-top: 2px; text-align: center; }
.con-logo-fondo { background-repeat: no-repeat; background-position: center; background-size: contain; padding: 0 5px; }

/* Barra Título */
#titulo { 
    background: #041525; 
    color: #FFF; 
    padding: 5px 15px; 
    font-size: 0.85rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 40px; 
    position: relative; 
    z-index: 1001;
}

/* Contenedor Central */
#contenedor_central { 
    display: flex; 
    flex-wrap: nowrap; 
    align-items: stretch; 
    position: relative; 
}

#menu { width: 20%; min-width: 180px; background: #f5f5dc; border-right: 1px solid #9EA5AC; padding: 10px 0; flex-shrink: 0; }
#cuerpo { width: auto; flex: 1; background-color: #F3E2A9; padding: 20px; }
#menu_der { width: 20%; min-width: 180px; background: #f5f5dc; border-left: 1px solid #9EA5AC; padding: 10px; flex-shrink: 0; }
#pie { background: #f5f5dc; border-top: 1px solid #9EA5AC; padding: 20px; text-align: center; width: 100%; }

/* ==========================================================================
   3. MENÚ ACORDEÓN
   ========================================================================== */
#nav { list-style: none; padding: 0; margin: 0; }
#nav > li { position: relative; border-bottom: 1px solid #ddd; }

#nav a, #nav label {
    display: block; width: 100%; padding: 10px 15px; color: #041525; font-weight: bold; background: #f5f5dc; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: flex-start;
}
#nav a:hover, #nav label:hover { background-color: #ff9f33; color: #FFF; }

.active-parent { background-color: #ff9f33 !important; color: #FFF !important; }
.current-page { font-weight: bold; color: #d67a1c !important; background-color: #fff !important; border-left: 4px solid #ff9f33; }

.toggle-submenu { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; z-index: -1; }
#nav ul { display: none; list-style: none; padding: 0; margin: 0; background: #fff8dc; border-top: 1px solid #ccc; width: 100%; }
#nav ul li a { padding-left: 30px; font-weight: normal; font-size: 0.9em; color: #2f4b80; background: #fff8dc; border-bottom: 1px solid #eee; display: block; }
#nav ul li a:hover { background: #ffeebb; color: #000; }

.toggle-submenu:checked ~ ul { display: block !important; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ICONOS + / - */
#nav label { position: relative; }
#nav label::after { 
    content: '+'; 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 1.2em; 
    font-weight: bold; 
    color: #ff9f33; 
    transition: color 0.2s; 
}

/* Hover en la etiqueta: icono blanco */
#nav label:hover::after { color: #FFF !important; }

/* Cambiar a menos si está desplegado */
.toggle-submenu:checked ~ label::after { content: '-'; color: #B45F04; }

/* Icono blanco si la sección está activa (seleccionada) */
.active-parent::after { color: #FFF !important; }


/* ==========================================================================
   4. SLIDER Y ESTILO 'VENTANA' (Ajustado desde slide.css)
   ========================================================================== */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden; /* Evita que las flechas se salgan del contenedor */
}

/* Ocultar imágenes por defecto */
.mySlides {
    display: none;
    text-align: center;
}

/* Estilo para las imágenes del slider (clase .ventana en tu index) */
.ventana {
    width: 80% !important;
    display: block;
    margin: 0 auto;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Botones Anterior y Siguiente */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px;
    color: #000000 !important;
    font-size: 40px !important;
    font-weight: bold !important;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(255,255,255,0.3); /* Fondo ligero para visibilidad */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(255,159,51,0.8);
    color: #fff !important;
}

/* Texto de pie de foto (Caption) */
.text {
    color: #6f4726; /* Color acorde a tu paleta */
    font-size: 15px;
    padding: 10px 12px;
    position: relative; /* Cambiado de absolute para que no pise la foto */
    width: 100%;
    text-align: center;
    font-weight: bold;
}

/* Contador (Ej: Febes - Manuel Simó 24) */
.numbertext {
    color: #fde5c8;
    font-size: 16px;
    padding: 8px 12px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(4, 21, 37, 0.8);
    border-radius: 20px;
    z-index: 10;
}

/* Puntos (Dots) */
.dot {
    cursor: pointer;
    height: 13px;
    width: 13px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #041525;
}

/* Animación de desvanecimiento */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* ==========================================================================
   5. COLUMNA DERECHA
   ========================================================================== */
#ArticulosInteres, #EnlacesInteres, #Noticia, #Cita, #NuestrasFrases {
    background-color: #ffffff; border: 1px solid #9EA5AC; border-radius: 8px; padding: 15px; margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); width: 100%; overflow: hidden;
}
#ArticulosInteres h1, #EnlacesInteres h1 { font-size: 1.1rem; color: #041525; text-align: center; border-bottom: 2px solid #ff9f33; padding-bottom: 8px; margin: 0 0 10px 0; }
#ArticulosInteres ul { list-style: none; padding: 0; margin: 0; }
#ArticulosInteres li { border-bottom: 1px dotted #ccc; padding: 8px 0; text-align: left; font-size: 0.9rem; }
#ArticulosInteres li:last-child { border-bottom: none; }
#ArticulosInteres a { display: block; color: #041525; }
#ArticulosInteres a:hover { color: #fff; background-color: #ff9f33; padding-left: 5px; border-radius: 3px; }
#Cita { background: url('../imagenes/pergamino.gif') no-repeat center top; background-size: cover; min-height: 200px; display: flex; align-items: center; justify-content: center; font-family: monospace; font-style: italic; font-weight: bold; color: #833b0f; padding: 20px; text-align: center; }

/* ==========================================================================
   6. WIDGETS
   ========================================================================== */
.central-widgets { display: flex; justify-content: space-around; margin-top: 30px; padding-top: 20px; border-top: 2px dashed #ff9f33; gap: 15px; }
.widget-col { flex: 1; text-align: center; background: rgba(255,255,255,0.5); padding: 10px; border-radius: 10px; transition: transform 0.2s; }
.widget-col:hover { transform: translateY(-5px); }
.widget-col img { max-height: 80px; width: auto; margin-bottom: 5px; }

/* ==========================================================================
   7. BOTÓN HAMBURGUESA
   ========================================================================== */
#menu-toggle { position: absolute; opacity: 0; z-index: -1; }
.menu-btn { display: none; cursor: pointer; background: #ff9f33; padding: 5px 8px; border-radius: 3px; margin-left: 10px; }
.nav-icon { background: #fff; display: block; height: 3px; width: 20px; position: relative; transition: background .2s ease-out; }
.nav-icon:before, .nav-icon:after { background: #fff; content: ''; display: block; height: 100%; position: absolute; width: 100%; transition: all .2s ease-out; }
.nav-icon:before { top: 6px; }
.nav-icon:after { top: -6px; }
#menu-toggle:checked ~ #contenedor #titulo .menu-btn .nav-icon { background: transparent; }
#menu-toggle:checked ~ #contenedor #titulo .menu-btn .nav-icon:before { transform: rotate(-45deg); top: 0; }
#menu-toggle:checked ~ #contenedor #titulo .menu-btn .nav-icon:after { transform: rotate(45deg); top: 0; }

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 850px) {
    #cabecera2 { padding: 5px; justify-content: center; }
    .logo-box { width: auto; margin-right: 10px; }
    .logo-box img { max-height:200px;  }
    .title-box { width: auto; align-items: flex-start; }
    .texto-header-febes { text-align: left; }
    .menu-btn { display: block; }
    #contenedor_central { flex-direction: column; }
    
    #menu {
        position: absolute; top: 0; left: 0; width: 100%; z-index: 1000;
        background-color: #fcf5a7; border-right: none; border-bottom: 3px solid #ff9f33;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.4s ease-in-out;
    }
    #menu-toggle:checked ~ #contenedor #contenedor_central #menu { opacity: 1; visibility: visible; transform: translateY(0); }
    #cuerpo { width: 100%; padding: 15px; }
    #menu_der { width: 100%; border-left: none; border-top: 1px solid #ccc; }
    
    @media (max-width: 450px) { 
        .central-widgets { flex-direction: column; }
        .footer-flex { flex-direction: column; }
        .vcard { width: 100% !important; border-bottom: 1px solid #ddd; }
        .contenedor-contacto { gap: 20px; } /* Ajuste responsive contacto */
    }


.con-logo-fondo {
        display: none !important;
    }


}

/* ==========================================================================
   9. LOGIN
   ========================================================================== */
.login-box {
    background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px; margin: 20px auto; text-align: center; border: 1px solid #eaeaea; max-width: 250px;
}
.login-header {
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #f2f2f2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-family: 'Verdana', Arial, sans-serif; color: #041525; font-size: 0.85rem; font-weight: bold; text-transform: uppercase;
}
.login-header .febes-font { color: #e68a2e; font-size: 3rem; text-transform: none; line-height: 1; margin-top: 5px; }
.login-box label { display: block; text-align: left; font-size: 0.8rem; color: #555; margin-bottom: 5px; font-weight: bold; }
.input-igual { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; display: block; background-color: #fafafa; transition: all 0.3s; }
.input-igual:focus { border-color: #ff9f33; background-color: #fff; outline: none; box-shadow: 0 0 5px rgba(255, 159, 51, 0.2); }
.botongrande { width: 100%; padding: 12px; background: linear-gradient(135deg, #ff9f33, #d67a1c); color: white; border: none; border-radius: 25px; font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-transform: uppercase; }
.botongrande:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(214, 122, 28, 0.4); }
.botongrande:active { transform: translateY(0); }
.password-wrapper { position: relative; }
.toggle-password { position: absolute; right: 10px; top: 10px; cursor: pointer; color: #999; }
.toggle-password:hover { color: #333; }

/* ==========================================================================
   10. PIE DE PÁGINA
   ========================================================================== */
.footer-flex {
    display: flex;
    flex-wrap: wrap; 
    width: 100%;
}

.vcard {
    width: 50%; 
    box-sizing: border-box; 
    padding: 15px;
    text-align: center;
}

.fn.org { font-weight: bold; font-size: 1.1em; color: #041525; display: block; margin-bottom: 5px; }
.tel { font-weight: bold; color: #B45F04; }

/* ==========================================================================
   11. PÁGINA CONTACTO (NUEVO)
   ========================================================================== */
.contenedor-contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Columna de cada centro con fondo sutil */
.centro-col {
    flex: 1;
    min-width: 300px; 
    text-align: center;
    background-color: rgba(255, 255, 255, 0.4); 
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Estilo específico para el contenedor del iframe del mapa */
.ventana-mapa {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Aspecto más cuadrado para mapa 4:3 */
    height: 0;
    overflow: hidden;
    
    /* Hereda el estilo suave de .ventana */
    border-radius: 12px;
    background-color: #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ventana-mapa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ventana-mapa iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}