/*
Theme Name: Twenty Twenty-Three
Theme URI: https://wordpress.org/themes/twentytwentythree
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: twentytwentythree
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* ===================== */
/* VARIABLES GLOBALES */
/* ===================== */
:root {
    --primary-color: #003362;
    --secondary-color: #0098C1;
    --tertiary-color: #0A94E7;
    --text-dark: #333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-light-dark: #f7f7f7;
    --background-dark: rgba(0, 51, 98, 0.7);
    --primary-color-dark: #002244 ;
	--secondary-color-dark: #00708E;
}

/* ===================== */
/* OCULTAR BARRA ADMIN (WordPress) */
/* ===================== */
#wpadminbar {
    display: none;
}

/* ===================== */
/* ESTILOS GENERALES */
/* ===================== */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
}

a {
	color: var(--secondary-color);
	font-weight: 600;
	text-decoration: none;
}

/* ===================== */
/* HEADER - ESTILOS GENERALES */
/* ===================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 15px 0;
    background-color: var(--background-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===================== */
/* NAVEGACIÓN PRINCIPAL */
/* ===================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    z-index: 11;
    flex-wrap: wrap;	
	margin-right: 30px !important;
}

nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: inline-block;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--text-light);
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

.wp-block-site-logo {
    margin-left: 40px !important;
}

.wp-block-navigation__submenu-container {
    background-color: var(--background-dark) !important;
    backdrop-filter: blur(10px);
}

.wp-block-navigation .wp-block-navigation-item {
	background: none;
}

.wp-block-navigation:not(.has-background) 
.wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    top: 0;
    right: 0; 
    left: auto; 
    width: 70%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    background-color: var(--background-dark);
    backdrop-filter: blur(10px);
    padding: 30px 30px;
}

.wp-block-navigation__responsive-container.is-menu-open 
.wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: block;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out;
}

.wp-block-navigation__responsive-container.is-menu-open 
.wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:active,
.wp-block-navigation__responsive-container.is-menu-open 
.wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:focus {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}

/* ===================== */
/* ESTILOS PERSONALIZADOS */
/* ===================== */

.text-glow {
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.6), 
        -1px -1px 3px rgba(255, 255, 255, 0.4);
}

.separator {
    position: relative;
    display: block;
    width: 150px;
    height: 6px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    margin: 0 auto;
}

.separator.secondary {
    background-color: var(--tertiary-color);
}

.figure-hover {
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease-in-out;
}

.figure-hover img {
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.figure-hover:hover img {
    transform: scale(1.05);
}

.image-light-effect {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.image-light-effect img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.image-light-effect::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%; /* Se expande ligeramente sobre la imagen */
    height: 110%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0) 80%);
    transform: translate(-50%, -50%);
    filter: blur(25px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    border-radius: inherit; /* Respeta los bordes redondeados de la imagen */
}

.image-light-effect.red::after {
    background: radial-gradient(circle, rgba(215, 22, 37, 0.8) 20%, rgba(215, 22, 37, 0) 70%);
}

.image-light-effect.blue::after {
    background: radial-gradient(circle, rgba(33, 150, 211, 0.8) 20%, rgba(33, 150, 211, 0) 70%);
}

.image-light-effect.pink::after {
    background: radial-gradient(circle, rgba(179, 60, 141, 0.8) 20%, rgba(179, 60, 141, 0) 70%);
}

.image-light-effect.purple::after {
    background: radial-gradient(circle, rgba(103, 57, 141, 0.8) 20%, rgba(103, 57, 141, 0) 70%);
}

/* ===================== */
/* ESTILOS GLOBALES DE BOTONES */
/* ===================== */

.wp-block-button {
    display: inline-block;
    text-align: center;
    margin: 10px 0;
}

/* Botón principal */
.wp-block-button__link {
    display: inline-block;
	min-width: 200px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
	transition: all 0.3s ease-in-out;
    color: var(--text-light);
	 background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wp-block-button .wp-block-button__link:hover {
	background-color: var(--primary-color-dark);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ===================== */
/* VARIANTES DEL BOTÓN SEGÚN EL CONTENEDOR */
/* ===================== */

.wp-block-button.btn-secondary .wp-block-button__link {
    background-color: var(--secondary-color);
}

.wp-block-button.btn-secondary .wp-block-button__link:hover {
    background-color: var(--secondary-color-dark);
}

/* ===================== */
/* ESTILOS GLOBALES DE BARRA DE BUSQUEDA */
/* ===================== */

.wp-block-search {
    margin: 20px auto;
}

.wp-block-search__input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--background-light);
    color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}

.wp-block-search__input:hover {
    border-color: var(--secondary-color);
}

input:focus,
textarea:focus,
.wp-block-search__input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 152, 193, 0.3);
    outline: none;
}

.wp-block-search__button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.wp-block-search__button:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ===================== */
/* ESTILOS GLOBALES DE POSTEOS RECIENTES */
/* ===================== */

.o-posts-grid-post-body {
	margin: 2em;
    background: rgba(0, 51, 98, 0.4) !important;
    border-radius: 10px !important; 
    transition: all 0.3s ease-in-out;
} 

.o-posts-grid-post-body a {
	text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.6), 
        -1px -1px 3px rgba(255, 255, 255, 0.4);
}

.o-posts-grid-post, 
.o-posts-grid-post-blog,
.o-featured-post {
	border-radius: 10px !important;
}

/* ===================== */
/* ESTILOS GLOBALES DE FLIPS */
/* ===================== */

.o-flip-content h3 {
    text-align: justify;
    margin: 0 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2); /* Blanco con 20% de opacidad */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
    border-radius: 10px;
}

.wp-block-post-title a {
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
}

.wp-block-post-title a:hover {
    color: #f8f8f8;
    text-shadow: 3px 3px 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}


