/*
Theme Name: Climatalia-theme
Theme URI:
Author: Espagnexport
Author URI:
Description: Tema Climatalia basado en Frost
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: frost
Text Domain: climatalia-theme
Tags:
*/

/*
 * BOGO Language Switcher - Climatalia Theme Personalization
 * Uses theme CSS custom properties for consistency
 */
/* Container */
.wp-block-bogo-language-switcher {
    position: relative;
    display: inline-block;
    color: var(--wp--preset--color--secondary);
    font-family: var(--wp--preset--font-family--barlow-condensed);
    font-size: var(--wp--preset--font-size--small);
    font-weight: var(wp--custom--font-weight--black);
    min-width: 130px;
}

/* Dropdown button */
.bogo-dropdown-button {
    position: relative;
    padding: 0.5rem 2.5rem 0.5rem 1rem; /* Aumentado un poco el espacio para la flecha */
    background-color: #ffffff; /* Blanco puro solicitado */
    border: 1px solid var(--wp--preset--color--line);
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.bogo-dropdown-button:hover {
    background-color: var(--wp--preset--color--base);
    border-color: var(--wp--preset--color--steel);
}

/* Arrow indicator mejorado */
.bogo-dropdown-button::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 45%;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--wp--preset--color--steel);
    border-bottom: 2px solid var(--wp--preset--color--steel);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Rotación de flecha cuando el menú está abierto */
.bogo-dropdown-button[aria-expanded="true"]::after {
    transform: translateY(-20%) rotate(-135deg);
}

/* Dropdown menu */
.bogo-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: auto;
    background: var(--wp--preset--color--base);
    min-width: 130px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--wp--preset--color--line);
    overflow: hidden;
    display: none; 
}

.bogo-dropdown-menu.bogo-dropdown-open {
    display: block;
    animation: bogoFadeIn 0.2s ease-out;
}

@keyframes bogoFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menu items */
.bogo-dropdown-menu li {
    margin: 0;
}

.bogo-dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s ease;
    font-family: var(--wp--preset--font-family--barlow-condensed);
    border-bottom: 1px solid #f0f0f0;
}

.bogo-dropdown-menu li:last-child a {
    border-bottom: none;
}

.bogo-dropdown-menu li a:hover {
    background-color: var(--wp--preset--color--neutral);
    color: var(--wp--preset--color--primary);
}

/* Idioma actual en el desplegable */
.bogo-dropdown-menu li.current a {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--accent);
}

/*
* Hero grid
*/
.grid-bg {
  position: relative;
  overflow: hidden;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,140,174,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,140,174,.25) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/*
* Mobile version
*/

@media (max-width: 768px) {
  .mobile-center {
    justify-content: center !important;
  }
}

@media (max-width: 600px) {


}
