/* ========================================
   Esolar - Landing Page Styles
   ======================================== */

/* CSS Variables - Paleta ESolar */
:root {
    --background: 0 0% 99%;
    --foreground: 0 0% 10%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 10%;

    /* Turquesa ESolar #48C2C5 */
    --primary: 181 52% 53%;
    --primary-foreground: 0 0% 100%;

    /* Laranja ESolar #F89938 */
    --secondary: 30 93% 60%;
    --secondary-foreground: 0 0% 10%;

    --muted: 180 10% 96%;
    --muted-foreground: 0 0% 40%;

    /* Laranja como accent */
    --accent: 30 93% 60%;
    --accent-foreground: 0 0% 10%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 180 15% 88%;
    --input: 180 15% 88%;
    --ring: 181 52% 53%;

    --radius: 0.75rem;

    /* Cores ESolar */
    --esolar-turquesa: 181 52% 53%;
    --esolar-laranja: 30 93% 60%;
    --esolar-preto: 0 0% 0%;
    --solar-dark: 0 0% 8%;
    --solar-light: 0 0% 98%;

    /* Gradientes harmonizados */
    --gradient-solar: linear-gradient(135deg, hsl(181 52% 48%), hsl(181 55% 58%));
    --gradient-sun: linear-gradient(135deg, hsl(30 93% 55%), hsl(25 90% 60%));
    --shadow-solar: 0 10px 40px -10px hsl(181 52% 53% / 0.35);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   Form Components (shadcn-style)
   ======================================== */

.shadcn-input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: hsl(var(--foreground));
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.shadcn-input:focus-visible {
    outline: none;
    ring: 2px;
    ring-color: hsl(var(--ring));
    ring-offset: 2px;
    ring-offset-color: hsl(var(--background));
}

.shadcn-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ========================================
   Toast Notifications
   ======================================== */

#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: white;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.destructive {
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border-color: hsl(var(--destructive));
}

/* ========================================
   Animations
   ======================================== */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ========================================
   Tab Component
   ======================================== */

.tab-trigger[data-state="active"] {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ========================================
   Accordion Component
   ======================================== */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
    padding-bottom: 0;
}

.accordion-content.open {
    max-height: 500px;
    padding-bottom: 1rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

/* ========================================
   Scroll Animations
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays escalonados */
.animate-on-scroll.delay-100 { transition-delay: 0.1s; }
.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-300 { transition-delay: 0.3s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }

/* ========================================
   Wizard Transitions
   ======================================== */

#wizard-step1,
#wizard-step2,
#wizard-results,
#wizard-success {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#wizard-step1 {
    opacity: 1;
    transform: translateY(0);
}

#wizard-step2,
#wizard-results {
    opacity: 1;
    transform: translateY(0);
}
