/*
Theme Name: MiSeguroYa
Theme URI: https://miseguroya.com.ar
Author: Alejandro Cieri
Author URI: https://miseguroya.com.ar
Description: Tema profesional para MiSeguroYa - Productor Asesor de Seguros
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miseguroya
*/

/* === VARIABLES DE COLOR === */
:root {
    --color-primary:    rgb(37, 99, 235);
    --color-primary-dk: rgb(29, 78, 216);
    --color-cyan:       rgb(6, 182, 212);
    --color-green:      rgb(34, 197, 94);
    --color-green-dk:   rgb(22, 163, 74);
    --color-slate:      rgb(100, 116, 139);
}

html { scroll-behavior: smooth; }

/* === COLORES TAILWIND CUSTOM — CSS puro para garantizar renderizado === */
.bg-primary          { background-color: var(--color-primary)  !important; }
.text-primary        { color: var(--color-primary)             !important; }
.bg-trust-green      { background-color: var(--color-green)    !important; }
.text-trust-green    { color: var(--color-green)               !important; }
.bg-cyan-accent      { background-color: var(--color-cyan)     !important; }
.text-slate-gray     { color: var(--color-slate)               !important; }
.hover\:bg-blue-700:hover    { background-color: var(--color-primary-dk) !important; }
.hover\:text-primary:hover   { color: var(--color-primary) !important; }
.hover\:bg-green-600:hover   { background-color: var(--color-green-dk)  !important; }

/* === HERO GRADIENT === */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
}

/* === FADE-IN HERO === */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === BADGE 1500+ SOLAPADO SOBRE IMAGEN === */
.hero-image-wrapper {
    position: relative;
    padding-bottom: 2.5rem;
}
.hero-badge {
    position: absolute;
    bottom: 8px;
    left: -12px;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    min-width: 200px;
}
.hero-badge-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.hero-badge-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.hero-badge-label {
    font-size: 0.8rem;
    color: var(--color-slate);
    margin-top: 2px;
}

/* === BOTONES HERO === */
.btn-green {
    background-color: var(--color-green);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    font-size: 1rem;
}
.btn-green:hover { background-color: var(--color-green-dk); }

.btn-glass {
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    font-size: 1rem;
}
.btn-glass:hover { background-color: rgba(255,255,255,0.3); }

/* === BOTÓN SUBMIT FORMULARIO === */
.btn-submit {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 0.85rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    font-size: 1rem;
    width: 100%;
}
.btn-submit:hover { background-color: var(--color-primary-dk); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* === ANIMACIÓN POR SCROLL === */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* === FORMULARIO DINÁMICO === */
.form-section { display: none; }
.form-section.active { display: block; }

/* === RESPUESTA DEL FORMULARIO === */
#form-response {
    display: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
}
#form-response.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
#form-response.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #22c55e;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 50;
    text-decoration: none;
}
.whatsapp-float:hover { background-color: #16a34a; transform: scale(1.1); color: #fff; }

/* === HEADER — corrección admin bar WP === */
#site-header { top: 0; }
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #site-header { top: 46px; }
}
