/*
Theme Name: NOWS Theme
Theme URI: https://www.nows.cl
Author: Atelier Busco
Author URI: https://www.atelierbusco.com
Description: Tema personalizado para la consultora NOWS, basado en el concepto del viaje e integrado con Tailwind CSS.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/g2.html
Tags: custom-theme, tailwind-css
Text Domain: nows-theme
*/

/* =================================================================
   Definición de Variables de Marca (Custom Properties)
   ================================================================= */
:root {
    /* Colores Principales */
    --nows-purple: #B308E9;
    --nows-green: #67F700;

    /* Colores Secundarios */
    --brand-orange: #FF6700;
    --brand-pink: #FF1A8D;
    --brand-blue: #00B3F2;

    /* Grises y Fondos */
    --gray-primary: #7C7C7C;
    --gray-secondary: #D6D6D6;
    --dark-background: #010101;
    --light-background: #FFFFFF;

    /* Tipografías */
    --font-heading: 'Bebas Kai', sans-serif;
    --font-subheading: 'Superclarendon', serif;
    --font-body: 'Arial', sans-serif;
}

/* =================================================================
   Aplicación de Fuentes Base
   ================================================================= */
body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

.font-subheading {
    font-family: var(--font-subheading);
}

/* =================================================================
   Estilos del ADN Interactivo (del WOW Factor)
   ================================================================= */
#dna-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dna-node {
    z-index: 10;
    cursor: pointer;
    text-align: center;
}

.dna-pulse {
    width: 20px;
    height: 20px;
    background-color: var(--nows-purple);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
    animation: pulse-animation 2s infinite;
}

.dna-node:hover .dna-pulse {
    transform: scale(1.5);
    background-color: var(--nows-green);
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(179, 8, 233, 0.7);
    }
    100% {
        box-shadow: 0 0 0 30px rgba(179, 8, 233, 0);
    }
}

.dna-label {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-background);
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.dna-node:hover .dna-label {
    opacity: 1;
}


/* =================================================================
   Animación de Fade-in para Tarjetas de Servicio
   ================================================================= */
@keyframes fadeIn-Up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase para aplicar la animación */
.fade-in-card {
    /* Por defecto, la tarjeta está oculta hasta que empieza la animación */
    opacity: 0; 
    /* Rellena el estado final de la animación para que no vuelva a ocultarse */
    animation-fill-mode: forwards; 
    /* Define la animación a usar */
    animation-name: fadeIn-Up;
    /* Duración de la animación */
    animation-duration: 0.8s;
    /* Curva de aceleración */
    animation-timing-function: ease-out;
}

/* style.css */

/* =================================================================
   Estilos del Logo Personalizado
   ================================================================= */
.custom-logo-link img.custom-logo {
    max-height: 80px; /* Ajusta esta altura según necesites */
    width: auto;      /* El ancho se ajustará automáticamente para mantener la proporción */
}

/* =================================================================
   Estilos Personalizados para WPForms
   ================================================================= */

/* =================================================================
   Estilos Personalizados para WPForms (Sin Variables CSS)
   ================================================================= */

/* --- Contenedor General y Etiquetas --- */
.wpforms-form .wpforms-field-label {
    color: #D6D6D6 !important; /* --gray-secondary */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.wpforms-form .wpforms-required-label {
    color: #B308E9 !important; /* --nows-purple */
    font-weight: bold;
}

/* --- Estilo de Campos (Input, Textarea) --- */
.wpforms-form .wpforms-field-container input[type="text"],
.wpforms-form .wpforms-field-container input[type="email"],
.wpforms-form .wpforms-field-container textarea {
    background-color: #111827 !important; /* bg-gray-900 */
    border: 2px solid rgba(179, 8, 233, 0.3); /* --nows-purple con 30% de opacidad */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.75rem; /* p-3 */
    color: #FFFFFF !important; /* --light-background */
    width: 100%;
    transition: all 0.2s ease-in-out;
    box-shadow: none; /* Reset de sombras por defecto */
}

/* --- Estilo al hacer Foco (click en el campo) --- */
.wpforms-form .wpforms-field-container input[type="text"]:focus,
.wpforms-form .wpforms-field-container input[type="email"]:focus,
.wpforms-form .wpforms-field-container textarea:focus {
    outline: none;
    border-color: #67F700 !important; /* --nows-green */
    box-shadow: 0 0 0 2px rgba(103, 247, 0, 0.4) !important; /* Simula un focus:ring de Tailwind */
}

/* --- Estilo para el campo de Nombre (Nombre y Apellidos en línea) --- */
.wpforms-form .wpforms-field-name .wpforms-field-row {
    display: flex;
    gap: 1rem; /* Espacio entre los campos */
}

.wpforms-form .wpforms-field-name .wpforms-field-row-block {
    flex: 1;
}

input.wpforms-field-required, textarea.wpforms-field-required, input.wpforms-field-medium  {
	background-color: #D6D6D6 !important;
	color: #000000 !important;
}

/* Ocultar las sub-etiquetas "Nombre" y "Apellidos" que están debajo de los campos */
.wpforms-form .wpforms-field-sublabel.after {
    display: none;
}

/* --- Estilo del Botón de Enviar --- */
.wpforms-form button[type="submit"].wpforms-submit {
    width: 100%;
    background-color: #B308E9 !important; /* --nows-purple */
    color: #FFFFFF !important; /* --light-background */
    /* Para font-family, asegúrate de que 'Bebas Kai' esté cargado en tu sitio */
    font-family: 'Bebas Kai', sans-serif; 
    font-weight: bold;
    font-size: 1.125rem; /* text-lg */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0.5rem; /* rounded-lg */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpforms-form button[type="submit"].wpforms-submit:hover {
    background-color: #67F700 !important; /* --nows-green */
    color: #010101 !important; /* --dark-background */
}