/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* * ========================================================================
 * ARQUITECTURA DE ESTILOS DE NEREIDA STUDIO
 * ==========================================================================
 * 1.0 VARIABLES GLOBALES (:root)
 * 2.0 UTILIDADES GLOBALES (Clases reutilizables)
 * 3.0 ESTRUCTURA (Header, Footer, etc.)
 * 4.0 COMPONENTES (Botones, Tarjetas, etc.)
 * ========================================================================== 
 */


/* * ========================================================================
 * 1.0 VARIABLES GLOBALES (:root)
 * ========================================================================== 
 */
:root {
    /* Tipografía */
    --font-serif: "DM Serif Text", serif;
    --font-sans: "DM Sans", sans-serif;

    /* Colores Neutros */
    --color-bg-1: #FFFFFF; /* Fondo Principal */
    --color-bg-2: #F1F3F7; /* Fondo Híbrido */
    --color-text-1: #14181F; /* Texto Principal */
    --color-text-2: #69717D; /* Texto Secundario */
    --color-border: #E0E4E9; /* Bordes / Líneas */

    /* Morados */
    --morado-oscuro: #5D38B0;
    --morado-medio: #8258C8;
    --morado-claro: #AC8DE0; /* Lila */

    /* Azules */
    --azul-oscuro: #1F4AB9;
    --azul-medio: #2C84C8;
    --azul-claro: #44B6E9; /* Cielo */

    /* Verdes */
    --verde-oscuro: #45D0BD;
    --verde-claro: #3EE0C0;

    /* Acento Hielo */
    --azul-hielo: #A2F5FF;

    /* Gradientes */
    --gradiente-1: linear-gradient(300deg, var(--morado-claro) 0%, var(--azul-claro) 100%);
    --gradiente-2: linear-gradient(300deg, var(--azul-claro) 0%, var(--verde-claro) 100%);
}


/* * ========================================================================
 * 2.0 UTILIDADES GLOBALES
 * ========================================================================== 
 */

/* CLASES DE TEXTO CON GRADIENTE */
/* (Clase .deg1 -> Gradiente 1) */
.deg1 {
  background: var(--gradiente-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* (Clase .deg2 -> Morado Oscuro/Medio) */
.deg2 {
  background: linear-gradient(120deg, var(--morado-oscuro), var(--morado-medio));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* (Clase .deg3 -> Gradiente 2: Azul/Verde) */
/* (Esta clase reemplaza la que tenías con colores fuera de paleta) */
.deg3 {
  background: var(--gradiente-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* * ========================================================================
 * 3.0 ESTRUCTURA
 * ======================================================================== 
 * Estilos para los componentes principales del layout (Cabecera, Footer).
 */

/* CABECERA PRINCIPAL (ID: #nereida-header) */
/* (Este ID debe estar en el Contenedor de tu Header en Elementor) */

/* 3.1 Estado Inicial (Sobre el Hero) */
/* (Selector corregido para el nuevo widget 'Menú') */
#nereida-header .e-n-menu .e-n-menu-title-container.e-link {
    color: #FFFFFF; /* Texto del menú BLANCO */
    transition: color 0.3s ease;
}
#nereida-header .elementor-widget-theme-site-logo svg path {
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

/* 3.2 Estado Sticky (Con Scroll) */
#nereida-header.elementor-sticky--effects {
    background: rgba(241, 243, 247, 0.75); /* --color-bg-2 con transparencia */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Safari fallback */
    border-bottom: 1px solid var(--color-border); 
    box-shadow: 0 2px 8px rgba(20, 24, 31, 0.06);
    transition: background 0.35s ease, border 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, opacity 0.3s ease;
}
#nereida-header.elementor-sticky--effects .e-n-menu .e-n-menu-title-container.e-link {
    color: var(--color-text-1) !important; /* Forzamos color oscuro */
}
#nereida-header.elementor-sticky--effects .elementor-widget-theme-site-logo svg path {
    fill: var(--color-text-1) !important; /* Forzamos color oscuro */
}

/* 3.3 FIX DE CONFLICTO (Sticky + Off-Canvas) */
/* (Esta es TU SOLUCIÓN: Oculta el header cuando el off-canvas está abierto) */

/* Cuando el Off-canvas está abierto (body.elementor-offcanvas-open)... */
body.elementor-offcanvas-open #nereida-header {
    /* ...matamos el header con una transición "fluida" */
    opacity: 0 !important;
    pointer-events: none !important; /* Para que no se pueda clickar */
    
    /* (Opcional) Un sutil slide-up para que "desaparezca" */
    /* transform: translateY(-20px); */
}




/* * ========================================================================
 * 4.0 COMPONENTES
 * ==========================================================================
 * Estilos para widgets específicos de Elementor (Botones, Tarjetas).
 */

/* =============== COMPONENTE: BOTÓN GLASS =============== */
/* (Clase: .nereida-btn-glass) */

/* WRAPPER WIDGET */
/* forzar que el widget que contiene el botón no tenga márgenes */
.elementor-widget-button.nereida-btn-glass {
  margin: 0 !important;
  padding: 0 !important;
}

/* BOTÓN INTERNO (EL <a>) */
/* estilos principales del botón (vidrio + borde degradado) */
.nereida-btn-glass .elementor-button {
  /* ESTRUCTURA Y LAYOUT (¡El arreglo del "gap"!) */
  display: inline-flex;       /* evita gaps de línea */
  align-items: center;
  justify-content: center;
  vertical-align: middle;       /* evita baseline gaps */
  line-height: 1;               /* elimina espacio extra debajo */
  box-sizing: border-box; 
  text-decoration: none;

  /* APARIENCIA (Nuestra Identidad) */
  position: relative;
  border-radius: 24px;          /* ¡Nuestro radio orgánico! */
  background: transparent !important;
  overflow: visible; 
  padding: 10px 24px;           /* Ajusta según tu diseño */
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease, box-shadow .18s ease;
  transform: none !important; /* Forzamos NO levitar */
}

/* CAPA 1: VIDRIO (debajo del anillo) */
.nereida-btn-glass .elementor-button::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.14); /* --vidrio-bg */
  backdrop-filter: blur(4px);             /* --vidrio-blur */
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* CAPA 2: ANILLO DEGRADADO (recortado) */
.nereida-btn-glass .elementor-button::after{
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;                   /* Grosor del borde */
  border-radius: inherit;
  background: var(--gradiente-1);
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: background 0.3s ease;
}

/* CAPA 3: CONTENIDO (Texto/Icono) */
.nereida-btn-glass .elementor-button .elementor-button-content-wrapper{
  position: relative;
  z-index: 2;
  color: inherit;
}

/* HOVER: intensificar vidrio / degradado (sin mover) */
.nereida-btn-glass .elementor-button:hover{
  transform: none !important; /* Asegurar que no levite */
}
.nereida-btn-glass .elementor-button:hover::before{
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nereida-btn-glass .elementor-button:hover::after{
  background: var(--gradiente-2); /* Cambia al gradiente 2 */
}

/* =============== COMPONENTE: TARJETA DE ICONO =============== */
/* (Clase: .iconbox-link) */

.iconbox-link{
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: none; /* evitar movimientos por defecto */
}

/* título: mantener por encima para accesibilidad */
.iconbox-link .elementor-icon-box-title a{
  position: relative;
  z-index: 3;
  color: var(--text);
  text-decoration: none;
}

/* capa pseudo para cobertura total sin bloquear hover */
.iconbox-link::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* permite hover en hijos */
}

/* hover: solo cambio de color en texto e icono (sin elevación) */
.iconbox-link:hover .elementor-icon-box-title a{
  color: var(--azul-oscuro); /* color sencillo; cambia a var(--grad) si quieres clip text */
  transition: color .20s ease;
}
.iconbox-link:hover .elementor-icon-box-icon svg{
  fill: var(--azul-oscuro);
  transition: fill .20s ease;
}

/* si quieres degradado en el texto (opcional, requiere -webkit-text-fill-color hack) */
.iconbox-link .grad-text {
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

